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

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

Issue 2485663002: Store CSSPropertyID in SVGAnimatedPropertyBase (Closed)
Patch Set: Add missing case Created 4 years, 1 month 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/SVGUseElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
index 4e3aae139742e4e33ca6b82e181a63fb71e48d79..0091e379c49c51509fc433fdddcdec468b55db6e 100644
--- a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
@@ -53,10 +53,12 @@ inline SVGUseElement::SVGUseElement(Document& document)
SVGURIReference(this),
m_x(SVGAnimatedLength::create(this,
SVGNames::xAttr,
- SVGLength::create(SVGLengthMode::Width))),
+ SVGLength::create(SVGLengthMode::Width),
+ CSSPropertyX)),
m_y(SVGAnimatedLength::create(this,
SVGNames::yAttr,
- SVGLength::create(SVGLengthMode::Height))),
+ SVGLength::create(SVGLengthMode::Height),
+ CSSPropertyY)),
m_width(
SVGAnimatedLength::create(this,
SVGNames::widthAttr,
@@ -172,20 +174,6 @@ static void transferUseWidthAndHeightIfNeeded(
}
}
-bool SVGUseElement::isPresentationAttribute(
- const QualifiedName& attrName) const {
- if (attrName == SVGNames::xAttr || attrName == SVGNames::yAttr)
- return true;
- return SVGGraphicsElement::isPresentationAttribute(attrName);
-}
-
-bool SVGUseElement::isPresentationAttributeWithSVGDOM(
- const QualifiedName& attrName) const {
- if (attrName == SVGNames::xAttr || attrName == SVGNames::yAttr)
- return true;
- return SVGGraphicsElement::isPresentationAttributeWithSVGDOM(attrName);
-}
-
void SVGUseElement::collectStyleForPresentationAttribute(
const QualifiedName& name,
const AtomicString& value,

Powered by Google App Engine
This is Rietveld 408576698