Changeset 87728 in webkit


Ignore:
Timestamp:
May 31, 2011 9:05:31 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-31 Cary Clark <caryclark@google.com>

Reviewed by Eric Seidel.

Allow Chromium porting layer to use Skia on Mac.
https://bugs.webkit.org/show_bug.cgi?id=61548

  • public/WebCommon.h: Don't allow WebKit to use CG if it is already using Skia.
  • src/PlatformBridge.cpp: (WebCore::PlatformBridge::paintScrollbarThumb): Allow scrollbar thumb draw to take WebCanvas.
Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r87597 r87728  
     12011-05-31  Cary Clark  <caryclark@google.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Allow Chromium porting layer to use Skia on Mac.
     6        https://bugs.webkit.org/show_bug.cgi?id=61548
     7
     8        * public/WebCommon.h:
     9        Don't allow WebKit to use CG if it is already using Skia.
     10
     11        * src/PlatformBridge.cpp:
     12        (WebCore::PlatformBridge::paintScrollbarThumb):
     13        Allow scrollbar thumb draw to take WebCanvas.
     14
    1152011-05-27  Jochen Eisinger  <jochen@chromium.org>
    216
  • trunk/Source/WebKit/chromium/public/WebCommon.h

    r85362 r87728  
    4848
    4949#if !defined(WEBKIT_USING_CG)
    50     #if defined(__APPLE__)
     50    #if defined(__APPLE__) && !WEBKIT_USING_SKIA
    5151        #define WEBKIT_USING_CG 1
    5252    #else
  • trunk/Source/WebKit/chromium/src/PlatformBridge.cpp

    r87463 r87728  
    797797    webThemeScrollbarInfo.totalSize = scrollbarInfo.totalSize;
    798798
     799#if WEBKIT_USING_SKIA
     800    WebKit::WebCanvas* webCanvas = gc->platformContext()->canvas();
     801#else
     802    WebKit::WebCanvas* webCanvas = gc->platformContext();
     803#endif
    799804    webKitClient()->themeEngine()->paintScrollbarThumb(
    800         gc->platformContext(),
     805        webCanvas,
    801806        static_cast<WebThemeEngine::State>(state),
    802807        static_cast<WebThemeEngine::Size>(size),
Note: See TracChangeset for help on using the changeset viewer.