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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp

Issue 1775013003: Implement -webkit-box-reflect as a filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make msvc dbg happy 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/compositing/CompositingReasonFinder.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
index d51d98fbb28c8b9f99f516629eb9d6e339d30261..742fb6eff1f68a9e3ac0857c11d19fc081c3d53d 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
@@ -103,12 +103,12 @@ CompositingReasons CompositingReasonFinder::potentialCompositingReasonsFromStyle
reasons |= CompositingReasonCompositorProxy;
// If the implementation of createsGroup changes, we need to be aware of that in this part of code.
- ASSERT((layoutObject->isTransparent() || layoutObject->hasMask() || layoutObject->hasFilter() || style.hasBlendMode()) == layoutObject->createsGroup());
+ ASSERT((layoutObject->isTransparent() || layoutObject->hasMask() || layoutObject->hasFilterInducingProperty() || style.hasBlendMode()) == layoutObject->createsGroup());
if (style.hasMask())
reasons |= CompositingReasonMaskWithCompositedDescendants;
- if (style.hasFilter())
+ if (style.hasFilterInducingProperty())
reasons |= CompositingReasonFilterWithCompositedDescendants;
if (style.hasBackdropFilter())

Powered by Google App Engine
This is Rietveld 408576698