Title: [120933] trunk/Source/WebCore
Revision
120933
Author
[email protected]
Date
2012-06-21 10:13:01 -0700 (Thu, 21 Jun 2012)

Log Message

[chromium] style improvement for setDeviceScaleFactor code
https://bugs.webkit.org/show_bug.cgi?id=89665

Correct a coding style error committed in https://bugs.webkit.org/show_bug.cgi?id=88916

Reviewed by Adrienne Walker.

Purely code hygiene: existing tests suffice.

* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::setDeviceScaleFactor):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (120932 => 120933)


--- trunk/Source/WebCore/ChangeLog	2012-06-21 17:07:51 UTC (rev 120932)
+++ trunk/Source/WebCore/ChangeLog	2012-06-21 17:13:01 UTC (rev 120933)
@@ -1,3 +1,17 @@
+2012-06-21  Robert Kroeger  <[email protected]>
+
+        [chromium] style improvement for setDeviceScaleFactor code
+        https://bugs.webkit.org/show_bug.cgi?id=89665
+
+        Correct a coding style error committed in https://bugs.webkit.org/show_bug.cgi?id=88916
+
+        Reviewed by Adrienne Walker.
+
+        Purely code hygiene: existing tests suffice.
+
+        * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
+        (WebCore::CCLayerTreeHostImpl::setDeviceScaleFactor):
+
 2012-06-21  Shinya Kawanaka  <[email protected]>
 
         [Crash][Editing] Pressing enter on LI element triggers assertion in Shadow DOM.

Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp (120932 => 120933)


--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp	2012-06-21 17:07:51 UTC (rev 120932)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp	2012-06-21 17:13:01 UTC (rev 120933)
@@ -707,11 +707,11 @@
         applyPageScaleDeltaToScrollLayers(layerImpl->children()[i].get(), pageScaleDelta);
 }
 
-void CCLayerTreeHostImpl::setDeviceScaleFactor(float newDeviceScaleFactor)
+void CCLayerTreeHostImpl::setDeviceScaleFactor(float deviceScaleFactor)
 {
-    if (newDeviceScaleFactor == deviceScaleFactor())
+    if (deviceScaleFactor == m_deviceScaleFactor)
         return;
-    m_deviceScaleFactor = newDeviceScaleFactor;
+    m_deviceScaleFactor = deviceScaleFactor;
 
     m_deviceViewportSize = viewportSize();
     m_deviceViewportSize.scale(m_deviceScaleFactor);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to