Attempted Leopard build fix.
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Oct 2011 18:45:40 +0000 (18:45 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Oct 2011 18:45:40 +0000 (18:45 +0000)
* platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::createCompatibleBuffer):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/GraphicsContext.cpp

index c866849..9813a06 100644 (file)
@@ -1,3 +1,10 @@
+2011-10-14  Beth Dakin  <bdakin@apple.com>
+
+        Attempted Leopard build fix.
+
+        * platform/graphics/GraphicsContext.cpp:
+        (WebCore::GraphicsContext::createCompatibleBuffer):
+
 2011-10-14  Andreas Kling  <kling@webkit.org>
 
         CSSStyleSheet should only ever contain CSSRules.
index 4678dd3..596299e 100644 (file)
@@ -752,7 +752,7 @@ PassOwnPtr<ImageBuffer> GraphicsContext::createCompatibleBuffer(const IntSize& s
     // graphics context.
 
     AffineTransform transform = getCTM();
-    IntSize scaledSize(size.width() * transform.xScale(), size.height() * transform.yScale());
+    IntSize scaledSize(static_cast<int>(ceil(size.width() * transform.xScale())), static_cast<int>(ceil(size.height() * transform.yScale())));
 
     OwnPtr<ImageBuffer> buffer = ImageBuffer::create(scaledSize);
     if (!buffer)