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

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

Issue 1190303003: CL for perf tryjob on win (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: CL for perf tryjob on mac Created 5 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 | « Source/core/css/parser/CSSParserImpl.cpp ('k') | 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 reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d. 5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 bool inShorthand() const { return m_inParseShorthand; } 85 bool inShorthand() const { return m_inParseShorthand; }
86 bool inQuirksMode() const { return isQuirksModeBehavior(m_context.mode()); } 86 bool inQuirksMode() const { return isQuirksModeBehavior(m_context.mode()); }
87 87
88 bool parseViewportProperty(CSSPropertyID propId, bool important); 88 bool parseViewportProperty(CSSPropertyID propId, bool important);
89 bool parseViewportShorthand(CSSPropertyID propId, CSSPropertyID first, CSSPr opertyID second, bool important); 89 bool parseViewportShorthand(CSSPropertyID propId, CSSPropertyID first, CSSPr opertyID second, bool important);
90 bool parseFontFaceDescriptor(CSSPropertyID); 90 bool parseFontFaceDescriptor(CSSPropertyID);
91 91
92 KURL completeURL(const String& url) const; 92 KURL completeURL(const String& url) const;
93 93
94 void addProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValue>, bool impor tant, bool implicit = false); 94 void addProperty(CSSPropertyID, CSSValue, bool important, bool implicit = fa lse);
95 void rollbackLastProperties(int num); 95 void rollbackLastProperties(int num);
96 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtrWillBeRawPt r<CSSValue>, bool); 96 void addExpandedPropertyForValue(CSSPropertyID propId, CSSValue, bool);
97 97
98 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ide nt, CSSParserValue*); 98 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ide nt, CSSParserValue*);
99 99
100 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor tant); 100 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor tant);
101 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor tant); 101 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor tant);
102 PassRefPtrWillBeRawPtr<CSSValueList> parseContent(); 102 PassRefPtrWillBeRawPtr<CSSValueList> parseContent();
103 PassRefPtrWillBeRawPtr<CSSValue> parseQuotes(); 103 NullableCSSValue parseQuotes();
104 104
105 PassRefPtrWillBeRawPtr<CSSValue> parseAttr(CSSParserValueList* args); 105 NullableCSSValue parseAttr(CSSParserValueList* args);
106 106
107 PassRefPtrWillBeRawPtr<CSSValue> parseBackgroundColor(); 107 NullableCSSValue parseBackgroundColor();
108 108
109 bool parseFillImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&); 109 bool parseFillImage(CSSParserValueList*, NullableCSSValue&);
110 110
111 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1, XFillPosition = 2, YFillPosition = 4 }; 111 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1, XFillPosition = 2, YFillPosition = 4 };
112 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe yword = 1 }; 112 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe yword = 1 };
113 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseFillPositionComponent(CSSPars erValueList*, unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillP ositionParsingMode = ResolveValuesAsPercent, Units = FUnknown); 113 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseFillPositionComponent(CSSPars erValueList*, unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillP ositionParsingMode = ResolveValuesAsPercent, Units = FUnknown);
114 PassRefPtrWillBeRawPtr<CSSValue> parseFillPositionX(CSSParserValueList*); 114 NullableCSSValue parseFillPositionX(CSSParserValueList*);
115 PassRefPtrWillBeRawPtr<CSSValue> parseFillPositionY(CSSParserValueList*); 115 NullableCSSValue parseFillPositionY(CSSParserValueList*);
116 void parse2ValuesFillPosition(CSSParserValueList*, RefPtrWillBeRawPtr<CSSVal ue>&, RefPtrWillBeRawPtr<CSSValue>&, Units = FUnknown); 116 void parse2ValuesFillPosition(CSSParserValueList*, NullableCSSValue&, Nullab leCSSValue&, Units = FUnknown);
117 bool isPotentialPositionValue(CSSParserValue*); 117 bool isPotentialPositionValue(CSSParserValue*);
118 void parseFillPosition(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&, R efPtrWillBeRawPtr<CSSValue>&, Units = FUnknown); 118 void parseFillPosition(CSSParserValueList*, NullableCSSValue&, NullableCSSVa lue&, Units = FUnknown);
119 void parse3ValuesFillPosition(CSSParserValueList*, RefPtrWillBeRawPtr<CSSVal ue>&, RefPtrWillBeRawPtr<CSSValue>&, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>); 119 void parse3ValuesFillPosition(CSSParserValueList*, NullableCSSValue&, Nullab leCSSValue&, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>, PassRefPtrWillBeRawPtr<C SSPrimitiveValue>);
120 void parse4ValuesFillPosition(CSSParserValueList*, RefPtrWillBeRawPtr<CSSVal ue>&, RefPtrWillBeRawPtr<CSSValue>&, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>); 120 void parse4ValuesFillPosition(CSSParserValueList*, NullableCSSValue&, Nullab leCSSValue&, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>, PassRefPtrWillBeRawPtr<C SSPrimitiveValue>);
121 121
122 void parseFillRepeat(RefPtrWillBeRawPtr<CSSValue>&, RefPtrWillBeRawPtr<CSSVa lue>&); 122 void parseFillRepeat(NullableCSSValue&, NullableCSSValue&);
123 PassRefPtrWillBeRawPtr<CSSValue> parseFillSize(CSSPropertyID); 123 NullableCSSValue parseFillSize(CSSPropertyID);
124 124
125 bool parseFillProperty(CSSPropertyID propId, CSSPropertyID& propId1, CSSProp ertyID& propId2, RefPtrWillBeRawPtr<CSSValue>&, RefPtrWillBeRawPtr<CSSValue>&); 125 bool parseFillProperty(CSSPropertyID propId, CSSPropertyID& propId1, CSSProp ertyID& propId2, NullableCSSValue&, NullableCSSValue&);
126 bool parseFillShorthand(CSSPropertyID, const CSSPropertyID* properties, int numProperties, bool important); 126 bool parseFillShorthand(CSSPropertyID, const CSSPropertyID* properties, int numProperties, bool important);
127 127
128 void addFillValue(RefPtrWillBeRawPtr<CSSValue>& lval, PassRefPtrWillBeRawPtr <CSSValue> rval); 128 void addFillValue(NullableCSSValue& lval, CSSValue rval);
129 129
130 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationDelay(); 130 NullableCSSValue parseAnimationDelay();
131 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationDirection(); 131 NullableCSSValue parseAnimationDirection();
132 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationDuration(); 132 NullableCSSValue parseAnimationDuration();
133 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationFillMode(); 133 NullableCSSValue parseAnimationFillMode();
134 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationIterationCount(); 134 NullableCSSValue parseAnimationIterationCount();
135 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationName(bool allowQuotedName); 135 NullableCSSValue parseAnimationName(bool allowQuotedName);
136 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationPlayState(); 136 NullableCSSValue parseAnimationPlayState();
137 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationProperty(); 137 NullableCSSValue parseAnimationProperty();
138 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunction(); 138 NullableCSSValue parseAnimationTimingFunction();
139 139
140 bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double& result); 140 bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double& result);
141 141
142 // Legacy parsing allows <string>s for animation-name 142 // Legacy parsing allows <string>s for animation-name
143 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationProperty(CSSPropertyID, bool useLegacyParsing); 143 NullableCSSValue parseAnimationProperty(CSSPropertyID, bool useLegacyParsing );
144 PassRefPtrWillBeRawPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyI D, bool useLegacyParsing); 144 PassRefPtrWillBeRawPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyI D, bool useLegacyParsing);
145 bool parseAnimationShorthand(bool useLegacyParsing, bool important); 145 bool parseAnimationShorthand(bool useLegacyParsing, bool important);
146 bool parseTransitionShorthand(bool important); 146 bool parseTransitionShorthand(bool important);
147 147
148 PassRefPtrWillBeRawPtr<CSSValue> parseColumnWidth(); 148 NullableCSSValue parseColumnWidth();
149 PassRefPtrWillBeRawPtr<CSSValue> parseColumnCount(); 149 NullableCSSValue parseColumnCount();
150 bool parseColumnsShorthand(bool important); 150 bool parseColumnsShorthand(bool important);
151 151
152 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition(); 152 NullableCSSValue parseGridPosition();
153 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti veValue>& numericValue, RefPtrWillBeRawPtr<CSSPrimitiveValue>& gridLineName); 153 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti veValue>& numericValue, RefPtrWillBeRawPtr<CSSPrimitiveValue>& gridLineName);
154 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); 154 bool parseGridItemPositionShorthand(CSSPropertyID, bool important);
155 bool parseGridTemplateRowsAndAreas(PassRefPtrWillBeRawPtr<CSSValue>, bool im portant); 155 bool parseGridTemplateRowsAndAreas(NullableCSSValue, bool important);
156 bool parseGridTemplateShorthand(bool important); 156 bool parseGridTemplateShorthand(bool important);
157 bool parseGridShorthand(bool important); 157 bool parseGridShorthand(bool important);
158 bool parseGridAreaShorthand(bool important); 158 bool parseGridAreaShorthand(bool important);
159 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&); 159 bool parseSingleGridAreaLonghand(NullableCSSValue&);
160 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackList(); 160 NullableCSSValue parseGridTrackList();
161 bool parseGridTrackRepeatFunction(CSSValueList&); 161 bool parseGridTrackRepeatFunction(CSSValueList&);
162 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu tList); 162 NullableCSSValue parseGridTrackSize(CSSParserValueList& inputList);
163 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); 163 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*);
164 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&); 164 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&);
165 PassRefPtrWillBeRawPtr<CSSValue> parseGridTemplateAreas(); 165 NullableCSSValue parseGridTemplateAreas();
166 bool parseGridLineNames(CSSParserValueList&, CSSValueList&, CSSGridLineNames Value* = nullptr); 166 bool parseGridLineNames(CSSParserValueList&, CSSValueList&, NullableCSSValue = nullptr);
167 PassRefPtrWillBeRawPtr<CSSValue> parseGridAutoFlow(CSSParserValueList&); 167 NullableCSSValue parseGridAutoFlow(CSSParserValueList&);
168 168
169 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseClipShape(); 169 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseClipShape();
170 170
171 bool parseLegacyPosition(CSSPropertyID, bool important); 171 bool parseLegacyPosition(CSSPropertyID, bool important);
172 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important); 172 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important);
173 PassRefPtrWillBeRawPtr<CSSValue> parseContentDistributionOverflowPosition(); 173 NullableCSSValue parseContentDistributionOverflowPosition();
174 174
175 PassRefPtrWillBeRawPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); 175 NullableCSSValue parseShapeProperty(CSSPropertyID propId);
176 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShapeAndOrBox(); 176 NullableCSSValue parseBasicShapeAndOrBox();
177 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBasicShape(); 177 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBasicShape();
178 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); 178 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*);
179 179
180 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueLi st* args); 180 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueLi st* args);
181 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueL ist* args); 181 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueL ist* args);
182 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueL ist* args); 182 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueL ist* args);
183 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueLis t* args); 183 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueLis t* args);
184 184
185 bool parseFont(bool important); 185 bool parseFont(bool important);
186 void parseSystemFont(bool important); 186 void parseSystemFont(bool important);
187 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily(); 187 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily();
188 188
189 PassRefPtrWillBeRawPtr<CSSValue> parseCounter(int defaultValue); 189 NullableCSSValue parseCounter(int defaultValue);
190 PassRefPtrWillBeRawPtr<CSSValue> parseCounterContent(CSSParserValueList* arg s, bool counters); 190 NullableCSSValue parseCounterContent(CSSParserValueList* args, bool counters );
191 191
192 bool parseColorParameters(CSSParserValue*, int* colorValues, bool parseAlpha ); 192 bool parseColorParameters(CSSParserValue*, int* colorValues, bool parseAlpha );
193 bool parseHSLParameters(CSSParserValue*, double* colorValues, bool parseAlph a); 193 bool parseHSLParameters(CSSParserValue*, double* colorValues, bool parseAlph a);
194 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(CSSParserValue* = 0, bo ol acceptQuirkyColors = false); 194 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(CSSParserValue* = 0, bo ol acceptQuirkyColors = false);
195 bool parseColorFromValue(CSSParserValue*, RGBA32&, bool acceptQuirkyColors = false); 195 bool parseColorFromValue(CSSParserValue*, RGBA32&, bool acceptQuirkyColors = false);
196 196
197 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseLineHeight(); 197 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseLineHeight();
198 bool parseFontSize(bool important); 198 bool parseFontSize(bool important);
199 bool parseFontVariant(bool important); 199 bool parseFontVariant(bool important);
200 bool parseFontWeight(bool important); 200 bool parseFontWeight(bool important);
201 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceSrc(); 201 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceSrc();
202 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceUnicodeRange(); 202 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceUnicodeRange();
203 203
204 bool parseSVGValue(CSSPropertyID propId, bool important); 204 bool parseSVGValue(CSSPropertyID propId, bool important);
205 PassRefPtrWillBeRawPtr<CSSValue> parseSVGStrokeDasharray(); 205 NullableCSSValue parseSVGStrokeDasharray();
206 206
207 PassRefPtrWillBeRawPtr<CSSValue> parsePaintOrder() const; 207 NullableCSSValue parsePaintOrder() const;
208 208
209 // CSS3 Parsing Routines (for properties specific to CSS3) 209 // CSS3 Parsing Routines (for properties specific to CSS3)
210 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro pertyID); 210 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro pertyID);
211 bool parseBorderImageShorthand(CSSPropertyID, bool important); 211 bool parseBorderImageShorthand(CSSPropertyID, bool important);
212 PassRefPtrWillBeRawPtr<CSSValue> parseBorderImage(CSSPropertyID); 212 NullableCSSValue parseBorderImage(CSSPropertyID);
213 bool parseBorderImageRepeat(RefPtrWillBeRawPtr<CSSValue>&); 213 bool parseBorderImageRepeat(NullableCSSValue&);
214 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS liceValue>&); 214 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS liceValue>&);
215 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSPrimitiveValue>&); 215 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSPrimitiveValue>&);
216 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSPrimitiveValue>&); 216 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSPrimitiveValue>&);
217 bool parseBorderRadius(CSSPropertyID, bool important); 217 bool parseBorderRadius(CSSPropertyID, bool important);
218 218
219 PassRefPtrWillBeRawPtr<CSSValue> parseReflect(); 219 NullableCSSValue parseReflect();
220 220
221 bool parseFlex(CSSParserValueList* args, bool important); 221 bool parseFlex(CSSParserValueList* args, bool important);
222 222
223 PassRefPtrWillBeRawPtr<CSSValue> parsePosition(CSSParserValueList*); 223 NullableCSSValue parsePosition(CSSParserValueList*);
224 PassRefPtrWillBeRawPtr<CSSValueList> parsePositionList(CSSParserValueList*); 224 NullableCSSValue parsePositionList(CSSParserValueList*);
225 225
226 // Image generators 226 // Image generators
227 bool parseCanvas(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&); 227 bool parseCanvas(CSSParserValueList*, NullableCSSValue&);
228 228
229 bool parseDeprecatedGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValu e>&); 229 bool parseDeprecatedGradient(CSSParserValueList*, NullableCSSValue&);
230 bool parseDeprecatedLinearGradient(CSSParserValueList*, RefPtrWillBeRawPtr<C SSValue>&, CSSGradientRepeat repeating); 230 bool parseDeprecatedLinearGradient(CSSParserValueList*, NullableCSSValue&, C SSGradientRepeat repeating);
231 bool parseDeprecatedRadialGradient(CSSParserValueList*, RefPtrWillBeRawPtr<C SSValue>&, CSSGradientRepeat repeating); 231 bool parseDeprecatedRadialGradient(CSSParserValueList*, NullableCSSValue&, C SSGradientRepeat repeating);
232 bool parseLinearGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&, CSSGradientRepeat repeating); 232 bool parseLinearGradient(CSSParserValueList*, NullableCSSValue&, CSSGradient Repeat repeating);
233 bool parseRadialGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&, CSSGradientRepeat repeating); 233 bool parseRadialGradient(CSSParserValueList*, NullableCSSValue&, CSSGradient Repeat repeating);
234 bool parseGradientColorStops(CSSParserValueList*, CSSGradientValue*, bool ex pectComma); 234 bool parseGradientColorStops(CSSParserValueList*, CSSGradientValue*, bool ex pectComma);
235 235
236 bool parseCrossfade(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&); 236 bool parseCrossfade(CSSParserValueList*, NullableCSSValue&);
237 237
238 PassRefPtrWillBeRawPtr<CSSValue> parseImageSet(CSSParserValueList*); 238 NullableCSSValue parseImageSet(CSSParserValueList*);
239 239
240 PassRefPtrWillBeRawPtr<CSSValue> parseWillChange(); 240 NullableCSSValue parseWillChange();
241 241
242 PassRefPtrWillBeRawPtr<CSSValueList> parseFilter(); 242 PassRefPtrWillBeRawPtr<CSSValueList> parseFilter();
243 PassRefPtrWillBeRawPtr<CSSFunctionValue> parseBuiltinFilterArguments(CSSPars erValueList*, CSSValueID); 243 PassRefPtrWillBeRawPtr<CSSFunctionValue> parseBuiltinFilterArguments(CSSPars erValueList*, CSSValueID);
244 244
245 PassRefPtrWillBeRawPtr<CSSValueList> parseTransformOrigin(); 245 PassRefPtrWillBeRawPtr<CSSValueList> parseTransformOrigin();
246 PassRefPtrWillBeRawPtr<CSSValueList> parseTransform(bool useLegacyParsing); 246 PassRefPtrWillBeRawPtr<CSSValueList> parseTransform(bool useLegacyParsing);
247 PassRefPtrWillBeRawPtr<CSSValue> parseTransformValue(bool useLegacyParsing, CSSParserValue*); 247 NullableCSSValue parseTransformValue(bool useLegacyParsing, CSSParserValue*) ;
248 248
249 PassRefPtrWillBeRawPtr<CSSValue> parseMotionPath(); 249 NullableCSSValue parseMotionPath();
250 PassRefPtrWillBeRawPtr<CSSValue> parseMotionRotation(); 250 NullableCSSValue parseMotionRotation();
251 251
252 PassRefPtrWillBeRawPtr<CSSValue> parseTextEmphasisStyle(); 252 NullableCSSValue parseTextEmphasisStyle();
253 253
254 PassRefPtrWillBeRawPtr<CSSValue> parseTouchAction(); 254 NullableCSSValue parseTouchAction();
255 PassRefPtrWillBeRawPtr<CSSValue> parseScrollBlocksOn(); 255 NullableCSSValue parseScrollBlocksOn();
256 256
257 void addTextDecorationProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValu e>, bool important); 257 void addTextDecorationProperty(CSSPropertyID, CSSValue, bool important);
258 bool parseTextDecoration(CSSPropertyID propId, bool important); 258 bool parseTextDecoration(CSSPropertyID propId, bool important);
259 259
260 PassRefPtrWillBeRawPtr<CSSValue> parseTextIndent(); 260 NullableCSSValue parseTextIndent();
261 261
262 PassRefPtrWillBeRawPtr<CSSLineBoxContainValue> parseLineBoxContain(); 262 PassRefPtrWillBeRawPtr<CSSLineBoxContainValue> parseLineBoxContain();
263 bool parseCalculation(CSSParserValue*, ValueRange); 263 bool parseCalculation(CSSParserValue*, ValueRange);
264 264
265 bool parseFontFeatureTag(CSSValueList*); 265 bool parseFontFeatureTag(CSSValueList*);
266 PassRefPtrWillBeRawPtr<CSSValue> parseFontFeatureSettings(); 266 NullableCSSValue parseFontFeatureSettings();
267 267
268 bool parseFontVariantLigatures(bool important); 268 bool parseFontVariantLigatures(bool important);
269 269
270 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&) ; 270 bool parseGeneratedImage(CSSParserValueList*, NullableCSSValue&);
271 271
272 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar serValue*); 272 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar serValue*);
273 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars erValue*); 273 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars erValue*);
274 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveCustomIdentValue(CS SParserValue*); 274 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveCustomIdentValue(CS SParserValue*);
275 275
276 PassRefPtrWillBeRawPtr<CSSValue> createCSSImageValueWithReferrer(const Strin g& rawValue, const KURL&); 276 CSSValue createCSSImageValueWithReferrer(const String& rawValue, const KURL& );
277 277
278 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*); 278 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*);
279 279
280 enum SizeParameterType { 280 enum SizeParameterType {
281 None, 281 None,
282 Auto, 282 Auto,
283 Length, 283 Length,
284 PageSize, 284 PageSize,
285 Orientation, 285 Orientation,
286 }; 286 };
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValue Condition releaseCalc = DoNotReleaseParsedCalcValue); 349 bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValue Condition releaseCalc = DoNotReleaseParsedCalcValue);
350 350
351 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSPrimitiveValue>&); 351 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSPrimitiveValue>&);
352 int colorIntFromValue(CSSParserValue*); 352 int colorIntFromValue(CSSParserValue*);
353 bool isCalculation(CSSParserValue*); 353 bool isCalculation(CSSParserValue*);
354 354
355 bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&); 355 bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&);
356 356
357 bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop& ); 357 bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop& );
358 358
359 void commitBorderImageProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValu e>, bool important); 359 void commitBorderImageProperty(CSSPropertyID, NullableCSSValue, bool importa nt);
360 360
361 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPoints(); 361 NullableCSSValue parseScrollSnapPoints();
362 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapDestination(); 362 NullableCSSValue parseScrollSnapDestination();
363 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapCoordinate(); 363 NullableCSSValue parseScrollSnapCoordinate();
364 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPosition(); 364 NullableCSSValue parseScrollSnapPosition();
365 365
366 private: 366 private:
367 // Inputs: 367 // Inputs:
368 CSSParserValueList* m_valueList; 368 CSSParserValueList* m_valueList;
369 const CSSParserContext& m_context; 369 const CSSParserContext& m_context;
370 370
371 // Outputs: 371 // Outputs:
372 WillBeHeapVector<CSSProperty, 256>& m_parsedProperties; 372 WillBeHeapVector<CSSProperty, 256>& m_parsedProperties;
373 StyleRule::Type m_ruleType; 373 StyleRule::Type m_ruleType;
374 374
375 // Locals during parsing: 375 // Locals during parsing:
376 int m_inParseShorthand; 376 int m_inParseShorthand;
377 CSSPropertyID m_currentShorthand; 377 CSSPropertyID m_currentShorthand;
378 bool m_implicitShorthand; 378 bool m_implicitShorthand;
379 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; 379 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation;
380 }; 380 };
381 381
382 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); 382 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&);
383 CSSPropertyID cssPropertyID(const String&); 383 CSSPropertyID cssPropertyID(const String&);
384 CSSValueID cssValueKeywordID(const CSSParserString&); 384 CSSValueID cssValueKeywordID(const CSSParserString&);
385 385
386 } // namespace blink 386 } // namespace blink
387 387
388 #endif // CSSPropertyParser_h 388 #endif // CSSPropertyParser_h
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSParserImpl.cpp ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698