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

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

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 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
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index 1b30ae3fe8bfb1da1e7c770a1bba175fdbb9849f..f80727c0ec313014fb851e19530d40355988d024 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -722,6 +722,13 @@ void SVGElement::collectStyleForPresentationAttribute(const QualifiedName& name,
addPropertyToPresentationAttributeStyle(style, propertyID, value);
}
+void SVGElement::addSVGLengthPropertyToPresentationAttributeStyle(MutableStylePropertySet* style, CSSPropertyID property, SVGLength& length)
+{
+ addPropertyToPresentationAttributeStyle(style, property,
+ length.valueInSpecifiedUnits(),
+ length.cssUnitTypeQuirk());
+}
+
bool SVGElement::haveLoadedRequiredResources()
{
for (SVGElement* child = Traversal<SVGElement>::firstChild(*this); child; child = Traversal<SVGElement>::nextSibling(*child)) {

Powered by Google App Engine
This is Rietveld 408576698