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

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

Issue 21042009: [SVG2] Merge SVGStyledElement into SVGElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Build fix Created 7 years, 5 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/svg/SVGUseElement.cpp
diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp
index 7ae5a10bb7eb5110cc10a494ef650e21993576ba..c42d717e18db6281ae90dc1c1cc6e8b99ed9dbdc 100644
--- a/Source/core/svg/SVGUseElement.cpp
+++ b/Source/core/svg/SVGUseElement.cpp
@@ -928,10 +928,10 @@ bool SVGUseElement::selfHasRelativeLengths() const
return false;
SVGElement* element = m_targetElementInstance->correspondingElement();
- if (!element || !element->isSVGStyledElement())
+ if (!element)
return false;
- return toSVGStyledElement(element)->hasRelativeLengths();
+ return toSVGElement(element)->hasRelativeLengths();
}
void SVGUseElement::notifyFinished(Resource* resource)

Powered by Google App Engine
This is Rietveld 408576698