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

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: Rebase on master 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
« no previous file with comments | « Source/core/svg/SVGTitleElement.idl ('k') | Source/core/svg/SVGViewElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGUseElement.cpp
diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp
index 2821732172c69035ea06fa52301ad2e028cea352..6a1ec89f8d4844473c9ffc917fc39e9405ac635c 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)
« no previous file with comments | « Source/core/svg/SVGTitleElement.idl ('k') | Source/core/svg/SVGViewElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698