ScrollView::setFrameRect() calls contentsResized() even when the frame size is unchanged
[WebKit-https.git] / Source / WebCore / platform / ScrollView.cpp
index 4d14805eff6232d4c63d0965cab639e2b4d70217..70c0d8a9afab9bfaecb14e6de11cc388f11cd76a 100644 (file)
@@ -844,8 +844,8 @@ void ScrollView::setFrameRect(const IntRect& newRect)
     frameRectsChanged();
 
     updateScrollbars(scrollOffset());
     frameRectsChanged();
 
     updateScrollbars(scrollOffset());
-    
-    if (!m_useFixedLayout)
+
+    if (!m_useFixedLayout && oldRect.size() != newRect.size())
         contentsResized();
 }
 
         contentsResized();
 }