2010-11-17 Andreas Kling <kling@webkit.org>
[WebKit-https.git] / WebCore / platform / ScrollView.cpp
index 5b8ff55ac74656d87f309da0f4c8dc4d08c53085..342a344288abd3295dbbbd61476997da99df2d19 100644 (file)
@@ -210,9 +210,6 @@ IntRect ScrollView::visibleContentRect(bool includeScrollbars) const
     if (paintsEntireContents())
         return IntRect(IntPoint(0, 0), contentsSize());
 
-    if (!m_actualVisibleContentRect.isEmpty())
-        return m_actualVisibleContentRect;
-
     return IntRect(IntPoint(m_scrollOffset.width(), m_scrollOffset.height()),
                    IntSize(max(0, width() - (verticalScrollbar() && !includeScrollbars ? verticalScrollbar()->width() : 0)), 
                            max(0, height() - (horizontalScrollbar() && !includeScrollbars ? horizontalScrollbar()->height() : 0))));