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

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

Issue 2736463002: [SPv2] Fix property node invalidation for CSS masks (Closed)
Patch Set: Avoid SVGRoot can of worms Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/FindPropertiesNeedingUpdate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 58c5960c7c4323ca62f196f3b4981854c56be9ef..6fc781500efb6e2281d7669ec046cd9bc6740e50 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -2284,11 +2284,16 @@ bool LayoutBox::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const {
styleRef().hasVisualOverflowingEffect())
return false;
- // If the box has clip or mask, we need issue paint invalidation to cover
+ // Both mask and clip-path generates drawing display items that depends on
+ // the size of the box.
+ if (hasMask() || hasClipPath())
+ return false;
+
+ // If the box has any kind of clip, we need issue paint invalidation to cover
// the changed part of children when the box got resized. In SPv2 this is
// handled by detecting paint property changes.
if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
- if (hasClipRelatedProperty() || hasControlClip() || hasMask())
+ if (hasClipRelatedProperty() || hasControlClip())
return false;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/FindPropertiesNeedingUpdate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698