| Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
|
| index a537649d107d676895550b7b60416f49652fbe3f..b63c13b7bb48815d7cc272902c4e78affca69bf4 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
|
| @@ -154,9 +154,7 @@ CSSPrimitiveValue* consumeNumber(CSSParserTokenRange& range,
|
| inline bool shouldAcceptUnitlessLength(double value,
|
| CSSParserMode cssParserMode,
|
| UnitlessQuirk unitless) {
|
| - // TODO(timloh): Presentational HTML attributes shouldn't use the CSS parser
|
| - // for lengths
|
| - return value == 0 || isUnitLessLengthParsingEnabledForMode(cssParserMode) ||
|
| + return value == 0 || cssParserMode == SVGAttributeMode ||
|
| (cssParserMode == HTMLQuirksMode && unitless == UnitlessQuirk::Allow);
|
| }
|
|
|
|
|