Changeset 54523 in webkit


Ignore:
Timestamp:
Feb 8, 2010 6:48:44 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-02-08 Kinuko Yasuda <kinuko@chromium.org>

Reviewed by David Levin.

Remove special utf-8 tag from Chromium cilpboard code because
we now have the corresponding code in generic clipboard framework
code in chromium (since it's needed by other places than in Web
page rendering) and no longer need the separate workaround code in
WebKit.
https://bugs.webkit.org/show_bug.cgi?id=34567

Test: (for regression) editing/pasteboard

  • platform/chromium/ClipboardChromium.cpp: (WebCore::ClipboardChromium::writeRange):
  • platform/chromium/PasteboardChromium.cpp: (WebCore::Pasteboard::writeSelection): (WebCore::Pasteboard::documentFragment):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r54521 r54523  
     12010-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
    1202010-02-08  Darin Adler  <darin@apple.com>
    221
  • trunk/WebCore/platform/chromium/ClipboardChromium.cpp

    r54469 r54523  
    364364    m_dataObject->textHtml = createMarkup(selectedRange, 0,
    365365        AnnotateForInterchange);
    366 #if OS(DARWIN)
    367     m_dataObject->textHtml = String("<meta charset='utf-8' id='webkit-interchange-charset'>") + m_dataObject->textHtml;
    368 #endif
    369366    m_dataObject->htmlBaseUrl = frame->document()->url();
    370367
  • trunk/WebCore/platform/chromium/PasteboardChromium.cpp

    r53442 r54523  
    8383{
    8484    String html = createMarkup(selectedRange, 0, AnnotateForInterchange);
    85 #if OS(DARWIN)
    86     html = String("<meta charset='utf-8' id='webkit-interchange-charset'>") + html;
    87 #endif
    8885    ExceptionCode ec = 0;
    8986    KURL url = selectedRange->startContainer(ec)->document()->url();
     
    171168        KURL srcURL;
    172169        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 #endif
    178170
    179171        RefPtr<DocumentFragment> fragment =
Note: See TracChangeset for help on using the changeset viewer.