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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp

Issue 1775013003: Implement -webkit-box-reflect as a filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase master 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/css/resolver/StyleAdjuster.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
index cabca2c1c9c6e0f596ff47b762509922b00891f9..f62b82a2ed21760eac069f3f3c72227e4ce9d7d0 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
@@ -196,7 +196,7 @@ void StyleAdjuster::adjustComputedStyle(ComputedStyle& style, const ComputedStyl
|| style.hasMask()
|| style.clipPath()
|| style.boxReflect()
- || style.hasFilter()
+ || style.hasFilterInducingProperty()
|| style.hasBlendMode()
|| style.hasIsolation()
|| style.position() == FixedPosition
@@ -228,7 +228,7 @@ void StyleAdjuster::adjustComputedStyle(ComputedStyle& style, const ComputedStyl
// FIXME: when dropping the -webkit prefix on transform-style, we should also have opacity < 1 cause flattening.
if (style.preserves3D() && (style.overflowX() != OverflowVisible
|| style.overflowY() != OverflowVisible
- || style.hasFilter()))
+ || style.hasFilterInducingProperty()))
style.setTransformStyle3D(TransformStyle3DFlat);
adjustStyleForEditing(style);

Powered by Google App Engine
This is Rietveld 408576698