Title: [99769] trunk/Source/WebKit2
Revision
99769
Author
[email protected]
Date
2011-11-09 15:27:51 -0800 (Wed, 09 Nov 2011)

Log Message

WebGraphicsLayer behaves wrongly when no contentsScale is set.
https://bugs.webkit.org/show_bug.cgi?id=71959

Reviewed by Noam Rosenthal.

The contentsScale needs to get a default value just like
TiledBackingStore in case no value is explicitely set.

It is covered by existing tests.

* WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
(WebCore::WebGraphicsLayer::WebGraphicsLayer):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (99768 => 99769)


--- trunk/Source/WebKit2/ChangeLog	2011-11-09 23:21:56 UTC (rev 99768)
+++ trunk/Source/WebKit2/ChangeLog	2011-11-09 23:27:51 UTC (rev 99769)
@@ -1,3 +1,18 @@
+2011-11-09  Alexis Menard  <[email protected]>
+
+        WebGraphicsLayer behaves wrongly when no contentsScale is set.
+        https://bugs.webkit.org/show_bug.cgi?id=71959
+
+        Reviewed by Noam Rosenthal.
+
+        The contentsScale needs to get a default value just like
+        TiledBackingStore in case no value is explicitely set.
+
+        It is covered by existing tests.
+
+        * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
+        (WebCore::WebGraphicsLayer::WebGraphicsLayer):
+
 2011-11-09  Mark Hahnenberg  <[email protected]>
 
         De-virtualize JSObject::getOwnPropertyDescriptor

Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebGraphicsLayer.cpp (99768 => 99769)


--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebGraphicsLayer.cpp	2011-11-09 23:21:56 UTC (rev 99768)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebGraphicsLayer.cpp	2011-11-09 23:27:51 UTC (rev 99769)
@@ -80,6 +80,7 @@
 #if USE(TILED_BACKING_STORE)
     , m_layerTreeTileClient(0)
     , m_mainBackingStore(adoptPtr(new TiledBackingStore(this, TiledBackingStoreRemoteTileBackend::create(this))))
+    , m_contentsScale(1.f)
 #endif
 {
     m_mainBackingStore->setContentsScale(1.0);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to