Index: third_party/WebKit/Source/core/layout/LayoutView.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
index fda41470202c48d60e628399e24902b3df4cefeb..bc3ab68c3224a822d95c125fd48b2e22d2e619da 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
@@ -247,8 +247,6 @@ void LayoutView::layout() { |
SubtreeLayoutScope layoutScope(*this); |
- LayoutRect oldLayoutOverflowRect = layoutOverflowRect(); |
- |
// Use calcWidth/Height to get the new width/height, since this will take the |
// full page zoom factor into account. |
bool relayoutChildren = |
@@ -283,17 +281,6 @@ void LayoutView::layout() { |
layoutContent(); |
- if (layoutOverflowRect() != oldLayoutOverflowRect) { |
- // The document element paints the viewport background, so we need to |
- // invalidate it when layout overflow changes. |
- // FIXME: Improve viewport background styling/invalidation/painting. |
- // crbug.com/475115 |
- if (Element* documentElement = document().documentElement()) { |
- if (LayoutObject* rootObject = documentElement->layoutObject()) |
- rootObject->setShouldDoFullPaintInvalidation(); |
- } |
- } |
- |
#if ENABLE(ASSERT) |
checkLayoutState(); |
#endif |