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

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: circling back towards patchset #1 again 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 0c28644a2127af181a58cfbc7358966f02de4526..6e55bc3c7acdb9bbabbe0aaff31ea1492875db7e 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