commit | 2153ba0e40e81529302d7c336de49dde7b425175 | [log] [tgz] |
---|---|---|
author | mitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Thu Mar 01 22:42:44 2012 +0000 |
committer | mitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Thu Mar 01 22:42:44 2012 +0000 |
tree | 2e913e467eeb3f5d5220e8d2b460534f5d7a0df4 | |
parent | 0445c9fa8a61faca2c959113921cdc00d2ecd188 [diff] [blame] |
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(). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/platform/ScrollView.cpp b/Source/WebCore/platform/ScrollView.cpp index 4d14805..70c0d8a 100644 --- a/Source/WebCore/platform/ScrollView.cpp +++ b/Source/WebCore/platform/ScrollView.cpp
@@ -844,8 +844,8 @@ frameRectsChanged(); updateScrollbars(scrollOffset()); - - if (!m_useFixedLayout) + + if (!m_useFixedLayout && oldRect.size() != newRect.size()) contentsResized(); }