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

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

Issue 2609803002: Use ShadowData in DropShadowFilterOperation (Closed)
Patch Set: Fix blend(...) order Created 3 years, 12 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/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index 55cf0444de026ab6d120d4a87c310dc304f9162a..0b1dbb416c183db51807ba35540f00f06079fa37 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -1817,15 +1817,13 @@ CSSValue* ComputedStyleCSSValueMapping::valueForFilter(
style));
break;
case FilterOperation::DROP_SHADOW: {
- DropShadowFilterOperation* dropShadowOperation =
- toDropShadowFilterOperation(filterOperation);
+ const auto& dropShadowOperation =
+ toDropShadowFilterOperation(*filterOperation);
filterValue = CSSFunctionValue::create(CSSValueDropShadow);
// We want our computed style to look like that of a text shadow (has
// neither spread nor inset style).
- ShadowData shadow(dropShadowOperation->location(),
- dropShadowOperation->stdDeviation(), 0, Normal,
- StyleColor(dropShadowOperation->getColor()));
- filterValue->append(*valueForShadowData(shadow, style, false));
+ filterValue->append(
+ *valueForShadowData(dropShadowOperation.shadow(), style, false));
break;
}
default:

Powered by Google App Engine
This is Rietveld 408576698