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

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

Issue 2938983002: Implement parseShorthand API for shorthand properties, "overflow", "font" and "font-variant" (Closed)
Patch Set: Rebase cl 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
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 bool ConsumeGridItemPositionShorthand(CSSPropertyID, bool important); 100 bool ConsumeGridItemPositionShorthand(CSSPropertyID, bool important);
101 bool ConsumeGridTemplateRowsAndAreasAndColumns(CSSPropertyID, bool important); 101 bool ConsumeGridTemplateRowsAndAreasAndColumns(CSSPropertyID, bool important);
102 bool ConsumeGridTemplateShorthand(CSSPropertyID, bool important); 102 bool ConsumeGridTemplateShorthand(CSSPropertyID, bool important);
103 bool ConsumeGridShorthand(bool important); 103 bool ConsumeGridShorthand(bool important);
104 bool ConsumeGridAreaShorthand(bool important); 104 bool ConsumeGridAreaShorthand(bool important);
105 105
106 bool ConsumePlaceContentShorthand(bool important); 106 bool ConsumePlaceContentShorthand(bool important);
107 bool ConsumePlaceItemsShorthand(bool important); 107 bool ConsumePlaceItemsShorthand(bool important);
108 bool ConsumePlaceSelfShorthand(bool important); 108 bool ConsumePlaceSelfShorthand(bool important);
109 109
110 bool ConsumeFont(bool important);
111 bool ConsumeFontVariantShorthand(bool important);
112 bool ConsumeSystemFont(bool important);
113
114 bool ConsumeBorderSpacing(bool important); 110 bool ConsumeBorderSpacing(bool important);
115 111
116 // CSS3 Parsing Routines (for properties specific to CSS3) 112 // CSS3 Parsing Routines (for properties specific to CSS3)
117 bool ConsumeBorderImage(CSSPropertyID, bool default_fill, bool important); 113 bool ConsumeBorderImage(CSSPropertyID, bool default_fill, bool important);
118 114
119 bool ConsumeFlex(bool important); 115 bool ConsumeFlex(bool important);
120 116
121 bool ConsumeLegacyBreakProperty(CSSPropertyID, bool important); 117 bool ConsumeLegacyBreakProperty(CSSPropertyID, bool important);
122 118
123 private: 119 private:
124 // Inputs: 120 // Inputs:
125 CSSParserTokenRange range_; 121 CSSParserTokenRange range_;
126 Member<const CSSParserContext> context_; 122 Member<const CSSParserContext> context_;
127 // Outputs: 123 // Outputs:
128 HeapVector<CSSProperty, 256>* parsed_properties_; 124 HeapVector<CSSProperty, 256>* parsed_properties_;
129 }; 125 };
130 126
131 CSSPropertyID UnresolvedCSSPropertyID(StringView); 127 CSSPropertyID UnresolvedCSSPropertyID(StringView);
132 CSSValueID CssValueKeywordID(StringView); 128 CSSValueID CssValueKeywordID(StringView);
133 129
134 } // namespace blink 130 } // namespace blink
135 131
136 #endif // CSSPropertyParser_h 132 #endif // CSSPropertyParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698