Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1419)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2483483003: Remove obsolete code that invalidates document element on LayoutView resize (Closed)
Patch Set: Rebaseline-cl Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/win/paint/invalidation/window-resize-vertical-writing-mode-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/win/paint/invalidation/window-resize-vertical-writing-mode-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698