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

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

Issue 192133002: Use isSVG*Element() helpers more in SVG code (Part 1) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/core/svg/SVGFELightElement.cpp ('k') | Source/core/svg/SVGFontData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFESpecularLightingElement.cpp
diff --git a/Source/core/svg/SVGFESpecularLightingElement.cpp b/Source/core/svg/SVGFESpecularLightingElement.cpp
index 0e30f711a3b0a59071e971e6368488756bb46137..6ea66d9462dec97390145a7346e2ab8131f65451 100644
--- a/Source/core/svg/SVGFESpecularLightingElement.cpp
+++ b/Source/core/svg/SVGFESpecularLightingElement.cpp
@@ -109,7 +109,7 @@ bool SVGFESpecularLightingElement::setFilterEffectAttribute(FilterEffect* effect
return specularLighting->setSpecularExponent(m_specularExponent->currentValue()->value());
LightSource* lightSource = const_cast<LightSource*>(specularLighting->lightSource());
- SVGFELightElement* lightElement = SVGFELightElement::findLightElement(this);
+ SVGFELightElement* lightElement = SVGFELightElement::findLightElement(*this);
ASSERT(lightSource);
ASSERT(lightElement);
@@ -165,7 +165,7 @@ void SVGFESpecularLightingElement::svgAttributeChanged(const QualifiedName& attr
void SVGFESpecularLightingElement::lightElementAttributeChanged(const SVGFELightElement* lightElement, const QualifiedName& attrName)
{
- if (SVGFELightElement::findLightElement(this) != lightElement)
+ if (SVGFELightElement::findLightElement(*this) != lightElement)
return;
// The light element has different attribute names so attrName can identify the requested attribute.
@@ -179,7 +179,7 @@ PassRefPtr<FilterEffect> SVGFESpecularLightingElement::build(SVGFilterBuilder* f
if (!input1)
return nullptr;
- RefPtr<LightSource> lightSource = SVGFELightElement::findLightSource(this);
+ RefPtr<LightSource> lightSource = SVGFELightElement::findLightSource(*this);
if (!lightSource)
return nullptr;
« no previous file with comments | « Source/core/svg/SVGFELightElement.cpp ('k') | Source/core/svg/SVGFontData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698