WebGraphicsLayer behaves wrongly when no contentsScale is set.
authoralexis.menard@openbossa.org <alexis.menard@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Nov 2011 23:27:51 +0000 (23:27 +0000)
committeralexis.menard@openbossa.org <alexis.menard@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Nov 2011 23:27:51 +0000 (23:27 +0000)
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):

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

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebCoreSupport/WebGraphicsLayer.cpp

index 5f05fb0..3026bf4 100644 (file)
@@ -1,3 +1,18 @@
+2011-11-09  Alexis Menard  <alexis.menard@openbossa.org>
+
+        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  <mhahnenberg@apple.com>
 
         De-virtualize JSObject::getOwnPropertyDescriptor
index 6fe92dc..7084324 100644 (file)
@@ -80,6 +80,7 @@ WebGraphicsLayer::WebGraphicsLayer(GraphicsLayerClient* client)
 #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);