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

Unified Diff: Source/core/svg/SVGFELightElement.cpp

Issue 23480021: Introduce toSVGFESpecularLightingElement(), and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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
« no previous file with comments | « no previous file | Source/core/svg/SVGFESpecularLightingElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFELightElement.cpp
diff --git a/Source/core/svg/SVGFELightElement.cpp b/Source/core/svg/SVGFELightElement.cpp
index 9cb96d9312cff15da356ef29dbac9f39987160e9..2ac7e0931abaf801d3ac828af2dcd8f75b08ff33 100644
--- a/Source/core/svg/SVGFELightElement.cpp
+++ b/Source/core/svg/SVGFELightElement.cpp
@@ -194,8 +194,7 @@ void SVGFELightElement::svgAttributeChanged(const QualifiedName& attrName)
diffuseLighting->lightElementAttributeChanged(this, attrName);
return;
} else if (parent->hasTagName(SVGNames::feSpecularLightingTag)) {
- SVGFESpecularLightingElement* specularLighting = static_cast<SVGFESpecularLightingElement*>(parent);
- specularLighting->lightElementAttributeChanged(this, attrName);
+ toSVGFESpecularLightingElement(parent)->lightElementAttributeChanged(this, attrName);
return;
}
}
« no previous file with comments | « no previous file | Source/core/svg/SVGFESpecularLightingElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698