Changeset 54523 in webkit
- Timestamp:
- Feb 8, 2010 6:48:44 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r54521 r54523 1 2010-02-08 Kinuko Yasuda <kinuko@chromium.org> 2 3 Reviewed by David Levin. 4 5 Remove special utf-8 tag from Chromium cilpboard code because 6 we now have the corresponding code in generic clipboard framework 7 code in chromium (since it's needed by other places than in Web 8 page rendering) and no longer need the separate workaround code in 9 WebKit. 10 https://bugs.webkit.org/show_bug.cgi?id=34567 11 12 Test: (for regression) editing/pasteboard 13 14 * platform/chromium/ClipboardChromium.cpp: 15 (WebCore::ClipboardChromium::writeRange): 16 * platform/chromium/PasteboardChromium.cpp: 17 (WebCore::Pasteboard::writeSelection): 18 (WebCore::Pasteboard::documentFragment): 19 1 20 2010-02-08 Darin Adler <darin@apple.com> 2 21 -
trunk/WebCore/platform/chromium/ClipboardChromium.cpp
r54469 r54523 364 364 m_dataObject->textHtml = createMarkup(selectedRange, 0, 365 365 AnnotateForInterchange); 366 #if OS(DARWIN)367 m_dataObject->textHtml = String("<meta charset='utf-8' id='webkit-interchange-charset'>") + m_dataObject->textHtml;368 #endif369 366 m_dataObject->htmlBaseUrl = frame->document()->url(); 370 367 -
trunk/WebCore/platform/chromium/PasteboardChromium.cpp
r53442 r54523 83 83 { 84 84 String html = createMarkup(selectedRange, 0, AnnotateForInterchange); 85 #if OS(DARWIN)86 html = String("<meta charset='utf-8' id='webkit-interchange-charset'>") + html;87 #endif88 85 ExceptionCode ec = 0; 89 86 KURL url = selectedRange->startContainer(ec)->document()->url(); … … 171 168 KURL srcURL; 172 169 ChromiumBridge::clipboardReadHTML(buffer, &markup, &srcURL); 173 #if OS(DARWIN)174 DEFINE_STATIC_LOCAL(const String, forceUtf8String, ("<meta charset='utf-8' id='webkit-interchange-charset'>"));175 if (markup.startsWith(forceUtf8String))176 markup = markup.substring(forceUtf8String.length());177 #endif178 170 179 171 RefPtr<DocumentFragment> fragment =
Note: See TracChangeset
for help on using the changeset viewer.