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

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

Issue 1774193002: New paint invalidation using paint property tree walk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 54c371e9d09500ca7c9601258e7c25a018b17bec..ce88afbcb046d558b621cc341d1504a7a3b0f28b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -3822,12 +3822,6 @@ PaintInvalidationReason LayoutBox::getPaintInvalidationReason(const LayoutBoxMod
if (oldBorderBoxSize == newBorderBoxSize)
return invalidationReason;
- // LayoutBox::incrementallyInvalidatePaint() depends on positionFromPaintInvalidationBacking
- // which is not available when slimmingPaintOffsetCachingEnabled.
- if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() && (style()->hasBoxDecorations() || style()->hasBackground()))
- return PaintInvalidationBorderBoxChange;
-
- // TODO(wangxianzhu): Remove incremental invalidation when we remove rect-based paint invalidation.
// See another hasNonCompositedScrollbars() callsite above.
if (hasNonCompositedScrollbars())
return PaintInvalidationBorderBoxChange;

Powered by Google App Engine
This is Rietveld 408576698