diff options
Diffstat (limited to 'WebCore/platform/graphics/win/GraphicsLayerCACF.cpp')
-rw-r--r-- | WebCore/platform/graphics/win/GraphicsLayerCACF.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/WebCore/platform/graphics/win/GraphicsLayerCACF.cpp b/WebCore/platform/graphics/win/GraphicsLayerCACF.cpp index dad5da1..f7674db 100644 --- a/WebCore/platform/graphics/win/GraphicsLayerCACF.cpp +++ b/WebCore/platform/graphics/win/GraphicsLayerCACF.cpp @@ -99,9 +99,7 @@ TransformationMatrix CAToTransform3D(const CATransform3D& fromT3D) static void setLayerBorderColor(WKCACFLayer* layer, const Color& color) { - CGColorRef borderColor = createCGColor(color); - layer->setBorderColor(borderColor); - CGColorRelease(borderColor); + layer->setBorderColor(cachedCGColor(color, ColorSpaceDeviceRGB)); } static void clearBorderColor(WKCACFLayer* layer) @@ -111,9 +109,7 @@ static void clearBorderColor(WKCACFLayer* layer) static void setLayerBackgroundColor(WKCACFLayer* layer, const Color& color) { - CGColorRef bgColor = createCGColor(color); - layer->setBackgroundColor(bgColor); - CGColorRelease(bgColor); + layer->setBackgroundColor(cachedCGColor(color, ColorSpaceDeviceRGB)); } static void clearLayerBackgroundColor(WKCACFLayer* layer) |