Changeset 49946 in webkit


Ignore:
Timestamp:
Oct 22, 2009 10:48:45 AM (14 years ago)
Author:
atwilson@chromium.org
Message:

Fixes Chromium Mac pasteboard handling to flow through the same code paths as other platforms.

Patch by Avi Drissman <avi@chromium.org> on 2009-10-22
Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=30591

  • platform/chromium/ChromiumBridge.h:
  • platform/chromium/PasteboardChromium.cpp:

(WebCore::Pasteboard::writeImage):

Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r49945 r49946  
     12009-10-22  Avi Drissman  <avi@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Fixes Chromium Mac pasteboard handling to flow through the same code paths as other platforms.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=30591
     8
     9        * platform/chromium/ChromiumBridge.h:
     10        * platform/chromium/PasteboardChromium.cpp:
     11        (WebCore::Pasteboard::writeImage):
     12
    1132009-10-20  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/WebCore/platform/chromium/ChromiumBridge.h

    r48821 r49946  
    3333
    3434#include "FileSystem.h"
     35#include "ImageSource.h"
    3536#include "LinkHash.h"
    3637#include "PassRefPtr.h"
    3738#include "PasteboardPrivate.h"
    38 
    39 class NativeImageSkia;
    4039
    4140typedef struct NPObject NPObject;
     
    7978        static void clipboardWritePlainText(const String&);
    8079        static void clipboardWriteURL(const KURL&, const String&);
    81         static void clipboardWriteImage(const NativeImageSkia*, const KURL&, const String&);
     80        static void clipboardWriteImage(NativeImagePtr, const KURL&, const String&);
    8281
    8382        // Cookies ------------------------------------------------------------
  • trunk/WebCore/platform/chromium/PasteboardChromium.cpp

    r48755 r49946  
    148148    KURL url = urlString.isEmpty() ? KURL() : node->document()->completeURL(deprecatedParseURL(urlString));
    149149
    150     NativeImageSkia* bitmap = 0;
    151 #if !PLATFORM(CG)
    152     bitmap = image->nativeImageForCurrentFrame();
    153 #endif
     150    NativeImagePtr bitmap = image->nativeImageForCurrentFrame();
    154151    ChromiumBridge::clipboardWriteImage(bitmap, url, title);
    155152}
Note: See TracChangeset for help on using the changeset viewer.