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

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

Issue 2529293012: Invalidate paint properties on paint offset changes (Closed)
Patch Set: Fix more underinvalidation Created 4 years 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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index fc48cab3e05c766569f25454af712a7460b27e11..edd94107371598c8687a3d4745bad1fdb972a15d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -1692,6 +1692,13 @@ void LayoutBox::frameRectChanged() {
// Should check this object for paint invalidation.
if (!needsLayout())
setMayNeedPaintInvalidation();
+
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) {
+ // The overflow clip paint property depends on the frame rect
+ // (see: PaintPropertyTreeBuilder::updateOverflowClip).
+ if (hasOverflowClip() || styleRef().containsPaint() || hasControlClip())
+ setNeedsPaintPropertyUpdate();
trchen 2016/12/02 22:32:40 This feel weird to me. The frameRect.location() sh
pdr. 2016/12/05 04:31:05 +1, good catch. This is hard to fix because we do
+ }
}
bool LayoutBox::intersectsVisibleViewport() const {
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698