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

Unified Diff: third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp

Issue 2112563002: Wire up invalidation for flood-{color,opacity} on <feDropShadow> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/svg/SVGFEDropShadowElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp b/third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp
index a896e34a4ae43d7b2d47b0ca74b86702ef76ade3..6bf775c8b082db3c93753ee183a9d7aeb136c48c 100644
--- a/third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp
@@ -59,6 +59,25 @@ void SVGFEDropShadowElement::setStdDeviation(float x, float y)
invalidate();
}
+bool SVGFEDropShadowElement::setFilterEffectAttribute(FilterEffect* effect, const QualifiedName& attrName)
+{
+ DCHECK(layoutObject());
+ FEDropShadow* dropShadow = static_cast<FEDropShadow*>(effect);
+
+ const SVGComputedStyle& svgStyle = layoutObject()->styleRef().svgStyle();
+ if (attrName == SVGNames::flood_colorAttr) {
+ dropShadow->setShadowColor(svgStyle.floodColor());
+ return true;
+ }
+ if (attrName == SVGNames::flood_opacityAttr) {
+ dropShadow->setShadowOpacity(svgStyle.floodOpacity());
+ return true;
+ }
+
+ NOTREACHED();
+ return false;
+}
+
void SVGFEDropShadowElement::svgAttributeChanged(const QualifiedName& attrName)
{
if (attrName == SVGNames::inAttr

Powered by Google App Engine
This is Rietveld 408576698