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

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

Issue 2708923011: Avoid duplicating the CSS property mapping for SVG pres. attrs. (Closed)
Patch Set: Created 3 years, 10 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 | « third_party/WebKit/Source/core/svg/SVGSVGElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 947e974deb3588300c4ffe0081c633a89195a5e6..9d99cfd448faf9ba3fe9b29b3291f1f31f3dce2e 100644
--- a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
@@ -180,10 +180,10 @@ void SVGUseElement::collectStyleForPresentationAttribute(
MutableStylePropertySet* style) {
SVGAnimatedPropertyBase* property = propertyFromAttribute(name);
if (property == m_x) {
- addPropertyToPresentationAttributeStyle(style, CSSPropertyX,
+ addPropertyToPresentationAttributeStyle(style, property->cssPropertyId(),
m_x->cssValue());
} else if (property == m_y) {
- addPropertyToPresentationAttributeStyle(style, CSSPropertyY,
+ addPropertyToPresentationAttributeStyle(style, property->cssPropertyId(),
m_y->cssValue());
} else {
SVGGraphicsElement::collectStyleForPresentationAttribute(name, value,
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGSVGElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698