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

Unified Diff: Source/core/css/parser/CSSParserMode.h

Issue 764703002: Support unit-less lengths for white-list of properties only. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: min/max-width/height, border-spacing, background-position, text-indent Created 5 years, 11 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/CSSParserMode.h
diff --git a/Source/core/css/parser/CSSParserMode.h b/Source/core/css/parser/CSSParserMode.h
index 20d79f07968489d1f034cf2c71030138cac0ad1a..d0149f5ec61eb84cc3e0cf25b5c7697d3c5155ac 100644
--- a/Source/core/css/parser/CSSParserMode.h
+++ b/Source/core/css/parser/CSSParserMode.h
@@ -71,7 +71,7 @@ inline bool isInternalPropertyAndValueParsingEnabledForMode(CSSParserMode mode)
inline bool isUnitLessLengthParsingEnabledForMode(CSSParserMode mode)
{
- return mode == HTMLQuirksMode || mode == HTMLAttributeMode || mode == SVGAttributeMode;
+ return mode == HTMLAttributeMode || mode == SVGAttributeMode;
}
inline bool isCSSViewportParsingEnabledForMode(CSSParserMode mode)

Powered by Google App Engine
This is Rietveld 408576698