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

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

Issue 2622473002: Replace HTMLAttributeMode with HTMLStandardMode (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSParserMode.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserMode.h b/third_party/WebKit/Source/core/css/parser/CSSParserMode.h
index 4b8aa1712525053fdea36ce5170c4b3a30f99818..05853f62ec15bd8db06da5524ab95b95bd5dfaa5 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserMode.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserMode.h
@@ -37,9 +37,6 @@ namespace blink {
enum CSSParserMode {
HTMLStandardMode,
HTMLQuirksMode,
- // HTML attributes are parsed in quirks mode but also allows internal
- // properties and values.
- HTMLAttributeMode,
// SVG attributes are parsed in quirks mode but rules differ slightly.
SVGAttributeMode,
// @viewport/@font-face rules are specially tagged in StylePropertySet so
@@ -52,17 +49,13 @@ enum CSSParserMode {
};
inline bool isQuirksModeBehavior(CSSParserMode mode) {
- return mode == HTMLQuirksMode; // || mode == HTMLAttributeMode;
+ return mode == HTMLQuirksMode;
}
inline bool isUASheetBehavior(CSSParserMode mode) {
return mode == UASheetMode;
}
-inline bool isUnitLessLengthParsingEnabledForMode(CSSParserMode mode) {
- return mode == HTMLAttributeMode || mode == SVGAttributeMode;
-}
-
inline bool isCSSViewportParsingEnabledForMode(CSSParserMode mode) {
return mode == CSSViewportRuleMode;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698