Chromium Code Reviews

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-width/height still accepts unitless lengths Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « LayoutTests/fast/images/mask-box-image-crash.html ('k') | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « LayoutTests/fast/images/mask-box-image-crash.html ('k') | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine