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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
6 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights 6 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights
7 * reserved. 7 * reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const CSSValue&, 81 const CSSValue&,
82 bool); 82 bool);
83 83
84 bool ConsumeBorder(bool important); 84 bool ConsumeBorder(bool important);
85 85
86 bool ParseShorthand(CSSPropertyID, bool important); 86 bool ParseShorthand(CSSPropertyID, bool important);
87 bool ConsumeShorthandGreedily(const StylePropertyShorthand&, bool important); 87 bool ConsumeShorthandGreedily(const StylePropertyShorthand&, bool important);
88 bool Consume2Values(const StylePropertyShorthand&, bool important); 88 bool Consume2Values(const StylePropertyShorthand&, bool important);
89 bool Consume4Values(const StylePropertyShorthand&, bool important); 89 bool Consume4Values(const StylePropertyShorthand&, bool important);
90 90
91 enum class LonghandsOrder { kNoOrder, kOrderBy2Values, kOrderBy4Values };
92
93 bool ConsumeShorthandViaLonghand(const StylePropertyShorthand&,
94 bool important,
95 LonghandsOrder);
96
91 // Legacy parsing allows <string>s for animation-name 97 // Legacy parsing allows <string>s for animation-name
92 bool ConsumeAnimationShorthand(const StylePropertyShorthand&, 98 bool ConsumeAnimationShorthand(const StylePropertyShorthand&,
93 bool use_legacy_parsing, 99 bool use_legacy_parsing,
94 bool important); 100 bool important);
95 bool ConsumeBackgroundShorthand(const StylePropertyShorthand&, 101 bool ConsumeBackgroundShorthand(const StylePropertyShorthand&,
96 bool important); 102 bool important);
97 bool ConsumeOffsetShorthand(bool important); 103 bool ConsumeOffsetShorthand(bool important);
98 104
99 bool ConsumeColumns(bool important); 105 bool ConsumeColumns(bool important);
100 106
(...skipping 23 matching lines...) Expand all
124 // Outputs: 130 // Outputs:
125 HeapVector<CSSProperty, 256>* parsed_properties_; 131 HeapVector<CSSProperty, 256>* parsed_properties_;
126 }; 132 };
127 133
128 CSSPropertyID UnresolvedCSSPropertyID(StringView); 134 CSSPropertyID UnresolvedCSSPropertyID(StringView);
129 CSSValueID CssValueKeywordID(StringView); 135 CSSValueID CssValueKeywordID(StringView);
130 136
131 } // namespace blink 137 } // namespace blink
132 138
133 #endif // CSSPropertyParser_h 139 #endif // CSSPropertyParser_h
OLDNEW
« 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