Fix the !CACHE_SUBIMAGES build
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jun 2014 21:00:15 +0000 (21:00 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jun 2014 21:00:15 +0000 (21:00 +0000)
* platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContext::drawNativeImage):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@169623 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp

index 3a64759..770951b 100644 (file)
@@ -1,3 +1,10 @@
+2014-06-05  Timothy Horton  <timothy_horton@apple.com>
+
+        Fix the !CACHE_SUBIMAGES build
+
+        * platform/graphics/cg/GraphicsContextCG.cpp:
+        (WebCore::GraphicsContext::drawNativeImage):
+
 2014-06-05  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         CSS JIT: Clean up StackAllocator
index 51996fa..26599a1 100644 (file)
@@ -227,7 +227,7 @@ void GraphicsContext::drawNativeImage(PassNativeImagePtr imagePtr, const FloatSi
 #if CACHE_SUBIMAGES
             image = subimageCache().getSubimage(image.get(), subimageRect);
 #else
-            image = adoptCF(CGImageCreateWithImageInRect(image, subimageRect));
+            image = adoptCF(CGImageCreateWithImageInRect(image.get(), subimageRect));
 #endif
             if (currHeight < srcRect.maxY()) {
                 ASSERT(CGImageGetHeight(image.get()) == currHeight - CGRectIntegral(srcRect).origin.y);