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

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

Issue 2957543002: Implement ConsumeShorthandViaLonghand to parse shorthand by calling longhand ParseSingleValue (Closed)
Patch Set: Created 3 years, 6 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/CSSPropertyParser.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/CSSPropertyParser.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h
index 006910e38d157945232d367f114a4e31df3269f1..8022273756160648a53193b8a0a576217cdf0ddc 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h
@@ -88,6 +88,12 @@ class CSSPropertyParser {
bool Consume2Values(const StylePropertyShorthand&, bool important);
bool Consume4Values(const StylePropertyShorthand&, bool important);
+ enum class LonghandsOrder { kNoOrder, kOrderBy2Values, kOrderBy4Values };
+
+ bool ConsumeShorthandViaLonghand(const StylePropertyShorthand&,
+ bool important,
+ LonghandsOrder);
+
// Legacy parsing allows <string>s for animation-name
bool ConsumeAnimationShorthand(const StylePropertyShorthand&,
bool use_legacy_parsing,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698