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

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 316305c8422ab5c53f5d143851368bc1b25e1354..d5bee361778483630ea2d398bcafcbfda68e6899 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())
chrishtr 2016/05/23 20:10:32 Even before https://crrev.com/392652 it was a bug
Xianzhu 2016/05/23 21:35:49 I think so, but couldn't create a test case to fai
- child->setMayNeedPaintInvalidation();
+ setMayNeedPaintInvalidationSubtree();
}
setHasOverflowClip(shouldClipOverflow);
}

Powered by Google App Engine
This is Rietveld 408576698