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

Unified Diff: Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 1299323005: blink: Add backdrop-filter support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: one more Created 5 years, 4 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: Source/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/Source/core/css/ComputedStyleCSSValueMapping.cpp b/Source/core/css/ComputedStyleCSSValueMapping.cpp
index ad9baf3a8a5c10161d961f71ddb065d20987cd9e..9a0e7bba7ac91315614db8830eddfa733884dcae 100644
--- a/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -1238,16 +1238,16 @@ PassRefPtrWillBeRawPtr<CSSValue> ComputedStyleCSSValueMapping::valueForShadowLis
return list.release();
}
-PassRefPtrWillBeRawPtr<CSSValue> ComputedStyleCSSValueMapping::valueForFilter(const ComputedStyle& style)
+PassRefPtrWillBeRawPtr<CSSValue> ComputedStyleCSSValueMapping::valueForFilter(const ComputedStyle& style, const FilterOperations& filterOperations)
{
- if (style.filter().operations().isEmpty())
+ if (filterOperations.operations().isEmpty())
return cssValuePool().createIdentifierValue(CSSValueNone);
RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
RefPtrWillBeRawPtr<CSSFunctionValue> filterValue = nullptr;
- for (const auto& operation : style.filter().operations()) {
+ for (const auto& operation : filterOperations.operations()) {
FilterOperation* filterOperation = operation.get();
switch (filterOperation->type()) {
case FilterOperation::REFERENCE:
@@ -2350,7 +2350,9 @@ PassRefPtrWillBeRawPtr<CSSValue> ComputedStyleCSSValueMapping::get(CSSPropertyID
case CSSPropertyShapeOutside:
return valueForShape(style, style.shapeOutside());
case CSSPropertyWebkitFilter:
- return valueForFilter(style);
+ return valueForFilter(style, style.filter());
+ case CSSPropertyBackdropFilter:
+ return valueForFilter(style, style.backdropFilter());
case CSSPropertyMixBlendMode:
return cssValuePool().createValue(style.blendMode());

Powered by Google App Engine
This is Rietveld 408576698