2011-04-25 James Robinson <jamesr@chromium.org>
authorjamesr@google.com <jamesr@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Apr 2011 23:43:16 +0000 (23:43 +0000)
committerjamesr@google.com <jamesr@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Apr 2011 23:43:16 +0000 (23:43 +0000)
        Reviewed by Sam Weinig.

        Fix OwnPtr strict mode violation in ImageBufferCG
        https://bugs.webkit.org/show_bug.cgi?id=59396

        * platform/graphics/cg/ImageBufferCG.cpp:
        (WebCore::ImageBuffer::ImageBuffer):

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

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

index 53691e7..c591384 100644 (file)
@@ -1,3 +1,13 @@
+2011-04-25  James Robinson  <jamesr@chromium.org>
+
+        Reviewed by Sam Weinig.
+
+        Fix OwnPtr strict mode violation in ImageBufferCG
+        https://bugs.webkit.org/show_bug.cgi?id=59396
+
+        * platform/graphics/cg/ImageBufferCG.cpp:
+        (WebCore::ImageBuffer::ImageBuffer):
+
 2011-04-25  Huang Dongsung  <luxtella@company100.net>
 
         Reviewed by Dirk Schulze.
index 95ce8c1..207a9e4 100644 (file)
@@ -153,7 +153,7 @@ ImageBuffer::ImageBuffer(const IntSize& size, ColorSpace imageColorSpace, Render
     if (!cgContext)
         return;
 
-    m_context.set(new GraphicsContext(cgContext.get()));
+    m_context= adoptPtr(new GraphicsContext(cgContext.get()));
     m_context->scale(FloatSize(1, -1));
     m_context->translate(0, -size.height());
     success = true;