Title: [203246] trunk/Source/WebCore
Revision
203246
Author
za...@apple.com
Date
2016-07-14 15:05:08 -0700 (Thu, 14 Jul 2016)

Log Message

ImageBuffer's succes flag should be set to false at the very beginning of the c'tor.
https://bugs.webkit.org/show_bug.cgi?id=159784

Reviewed by Simon Fraser.

No change in functionality.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (203245 => 203246)


--- trunk/Source/WebCore/ChangeLog	2016-07-14 21:52:52 UTC (rev 203245)
+++ trunk/Source/WebCore/ChangeLog	2016-07-14 22:05:08 UTC (rev 203246)
@@ -1,3 +1,15 @@
+2016-07-14  Zalan Bujtas  <za...@apple.com>
+
+        ImageBuffer's succes flag should be set to false at the very beginning of the c'tor.
+        https://bugs.webkit.org/show_bug.cgi?id=159784
+
+        Reviewed by Simon Fraser.
+
+        No change in functionality.
+
+        * platform/graphics/cg/ImageBufferCG.cpp:
+        (WebCore::ImageBuffer::ImageBuffer):
+
 2016-07-14  Alex Christensen  <achristen...@webkit.org>
 
         Use SocketProvider to create SocketStreamHandles

Modified: trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp (203245 => 203246)


--- trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp	2016-07-14 21:52:52 UTC (rev 203245)
+++ trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp	2016-07-14 22:05:08 UTC (rev 203246)
@@ -99,6 +99,7 @@
     : m_logicalSize(size)
     , m_resolutionScale(resolutionScale)
 {
+    success = false; // Make early return mean failure.
     float scaledWidth = ceilf(resolutionScale * size.width());
     float scaledHeight = ceilf(resolutionScale * size.height());
 
@@ -109,7 +110,6 @@
     m_size = IntSize(scaledWidth, scaledHeight);
     m_data.backingStoreSize = m_size;
 
-    success = false;  // Make early return mean failure.
     bool accelerateRendering = renderingMode == Accelerated;
     if (m_size.width() <= 0 || m_size.height() <= 0)
         return;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to