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

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

Issue 2000763003: Check subtree paint invalidation when overflow clip status changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index d7347a067b9b0baaa4909b5e922f6ec1d9e51cb3..8265ab97df4a29b2f05154d23af043011ce03bd7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -245,8 +245,7 @@ void LayoutBlock::updateFromStyle()
if (shouldClipOverflow != hasOverflowClip()) {
if (!shouldClipOverflow)
getScrollableArea()->invalidateAllStickyConstraints();
- for (LayoutObject* child = firstChild(); child; child = child->nextSibling())
- child->setMayNeedPaintInvalidation();
+ setMayNeedPaintInvalidationSubtree();
}
setHasOverflowClip(shouldClipOverflow);
}

Powered by Google App Engine
This is Rietveld 408576698