Commit 8504b30b authored by cmarrin@apple.com's avatar cmarrin@apple.com

2011-01-07 Chris Marrin <cmarrin@apple.com>

        Unreviewed.

        Use new wkCACFLayerGetContextUserData function

        * platform/graphics/ca/win/PlatformCALayerWin.cpp:

2011-01-07  Chris Marrin  <cmarrin@apple.com>

        Unreviewed.

        Minor change to check for null context

        * win/lib/WebKitSystemInterface.lib:
        * win/lib/WebKitSystemInterface_debug.lib:



git-svn-id: svn://svn.chromium.org/blink/trunk@75280 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 9554566d
2011-01-07 Chris Marrin <cmarrin@apple.com>
Unreviewed.
Use new wkCACFLayerGetContextUserData function
* platform/graphics/ca/win/PlatformCALayerWin.cpp:
2011-01-07 James Robinson <jamesr@chromium.org> 2011-01-07 James Robinson <jamesr@chromium.org>
Fix compile bustage due to bad merge in 75276. Fix compile bustage due to bad merge in 75276.
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "PlatformCALayerWinInternal.h" #include "PlatformCALayerWinInternal.h"
#include "WKCACFLayerRenderer.h" #include "WKCACFLayerRenderer.h"
#include <QuartzCore/CoreAnimationCF.h> #include <QuartzCore/CoreAnimationCF.h>
#include <WebKitSystemInterface/WebKitSystemInterface.h>
#include <wtf/CurrentTime.h> #include <wtf/CurrentTime.h>
#include <wtf/text/CString.h> #include <wtf/text/CString.h>
...@@ -67,13 +68,11 @@ static CFStringRef toCACFFilterType(PlatformCALayer::FilterType type) ...@@ -67,13 +68,11 @@ static CFStringRef toCACFFilterType(PlatformCALayer::FilterType type)
static WKCACFLayerRenderer* rendererForLayer(const PlatformCALayer* layer) static WKCACFLayerRenderer* rendererForLayer(const PlatformCALayer* layer)
{ {
// We need the WKCACFLayerRenderer associated with this layer, which is stored in the UserData of the CACFContext // We need the WKCACFLayerRenderer associated with this layer, which is stored in the UserData of the CACFContext
CACFContextRef context = CACFLayerGetContext(layer->platformLayer()); void* userData = wkCACFLayerGetContextUserData(layer->platformLayer());
if (!context) if (!userData)
return 0; return 0;
WKCACFLayerRenderer* renderer = static_cast<WKCACFLayerRenderer*>(CACFContextGetUserData(context)); return static_cast<WKCACFLayerRenderer*>(userData);
ASSERT(renderer);
return renderer;
} }
static PlatformCALayerWinInternal* intern(const PlatformCALayer* layer) static PlatformCALayerWinInternal* intern(const PlatformCALayer* layer)
......
2011-01-07 Chris Marrin <cmarrin@apple.com>
Unreviewed.
Minor change to check for null context
* win/lib/WebKitSystemInterface.lib:
* win/lib/WebKitSystemInterface_debug.lib:
2011-01-07 Chris Marrin <cmarrin@apple.com> 2011-01-07 Chris Marrin <cmarrin@apple.com>
Unreviewed. Unreviewed.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment