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

Unified Diff: Source/core/css/parser/CSSPropertyParser.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/css/parser/CSSPropertyParser.cpp
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
index df4abc98b9f2782a2f1252b9b25b2446cdbc03db..fb9e8af1414be050577845d4afde43c650ad1b25 100644
--- a/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/Source/core/css/parser/CSSPropertyParser.cpp
@@ -8194,6 +8194,10 @@ bool CSSPropertyParser::parseSVGValue(CSSPropertyID propId, bool important)
if (id == CSSValueLuminance || id == CSSValueAlpha)
validPrimitive = true;
break;
+ case CSSPropertyX:
+ case CSSPropertyY:
+ validPrimitive = (!id && validUnit(value, FLength | FPercent, SVGAttributeMode));
+ break;
/* shorthand properties */
case CSSPropertyMarker: {

Powered by Google App Engine
This is Rietveld 408576698