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

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

Issue 2211283003: Revert of Replace LayoutObject::skipInvalidationWhenLaidOutChildren() with painted... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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
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 ae252caf1836b773b5c7803fa55a5b5300f2c070..a1f5a977f9e3d31fe10640850ec1b03bf95a1455 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -571,6 +571,13 @@
continue;
o->setShouldInvalidateSelection();
+
+ // Blocks are responsible for painting line gaps and margin gaps. They must be examined as well.
+ for (LayoutBlock* block = o->containingBlock(); block && !block->isLayoutView(); block = block->containingBlock()) {
+ if (!processedBlocks.add(block).isNewEntry)
+ break;
+ block->setShouldInvalidateSelection();
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698