Title: [109431] trunk/Source/WebCore
Revision
109431
Author
[email protected]
Date
2012-03-01 14:42:44 -0800 (Thu, 01 Mar 2012)

Log Message

ScrollView::setFrameRect() calls contentsResized() even when the frame size is unchanged
https://bugs.webkit.org/show_bug.cgi?id=80047

Reviewed by Anders Carlsson.

* platform/ScrollView.cpp:
(WebCore::ScrollView::setFrameRect): Added a check that the new frame size differs from the
old one before calling contentsResized().

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (109430 => 109431)


--- trunk/Source/WebCore/ChangeLog	2012-03-01 22:41:56 UTC (rev 109430)
+++ trunk/Source/WebCore/ChangeLog	2012-03-01 22:42:44 UTC (rev 109431)
@@ -1,3 +1,14 @@
+2012-03-01  Dan Bernstein  <[email protected]>
+
+        ScrollView::setFrameRect() calls contentsResized() even when the frame size is unchanged
+        https://bugs.webkit.org/show_bug.cgi?id=80047
+
+        Reviewed by Anders Carlsson.
+
+        * platform/ScrollView.cpp:
+        (WebCore::ScrollView::setFrameRect): Added a check that the new frame size differs from the
+        old one before calling contentsResized().
+
 2012-03-01  James Robinson  <[email protected]>
 
         [chromium] Move pageScaleDirty logic from LayerChromium to GraphicsLayerChromium

Modified: trunk/Source/WebCore/platform/ScrollView.cpp (109430 => 109431)


--- trunk/Source/WebCore/platform/ScrollView.cpp	2012-03-01 22:41:56 UTC (rev 109430)
+++ trunk/Source/WebCore/platform/ScrollView.cpp	2012-03-01 22:42:44 UTC (rev 109431)
@@ -844,8 +844,8 @@
     frameRectsChanged();
 
     updateScrollbars(scrollOffset());
-    
-    if (!m_useFixedLayout)
+
+    if (!m_useFixedLayout && oldRect.size() != newRect.size())
         contentsResized();
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to