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

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

Issue 1225553002: CSSValue Immediates: Make CSSPrimitiveValue a container (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_1
Patch Set: Rebase Created 5 years, 4 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/CSSParser.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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 bool parseViewportProperty(CSSPropertyID propId, bool important); 89 bool parseViewportProperty(CSSPropertyID propId, bool important);
90 bool parseViewportShorthand(CSSPropertyID propId, CSSPropertyID first, CSSPr opertyID second, bool important); 90 bool parseViewportShorthand(CSSPropertyID propId, CSSPropertyID first, CSSPr opertyID second, bool important);
91 bool parseFontFaceDescriptor(CSSPropertyID); 91 bool parseFontFaceDescriptor(CSSPropertyID);
92 92
93 KURL completeURL(const String& url) const; 93 KURL completeURL(const String& url) const;
94 94
95 void addProperty(CSSPropertyID, CSSValue, bool important, bool implicit = fa lse); 95 void addProperty(CSSPropertyID, CSSValue, bool important, bool implicit = fa lse);
96 void rollbackLastProperties(int num); 96 void rollbackLastProperties(int num);
97 void addExpandedPropertyForValue(CSSPropertyID propId, CSSValue, bool); 97 void addExpandedPropertyForValue(CSSPropertyID propId, CSSValue, bool);
98 98
99 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ide nt, CSSParserValue*); 99 NullableCSSValue parseValidPrimitive(CSSValueID ident, CSSParserValue*);
100 100
101 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor tant); 101 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor tant);
102 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor tant); 102 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor tant);
103 PassRefPtrWillBeRawPtr<CSSValueList> parseContent(); 103 PassRefPtrWillBeRawPtr<CSSValueList> parseContent();
104 NullableCSSValue parseQuotes(); 104 NullableCSSValue parseQuotes();
105 105
106 NullableCSSValue parseAttr(CSSParserValueList* args); 106 NullableCSSValue parseAttr(CSSParserValueList* args);
107 107
108 bool parseFillImage(CSSParserValueList*, NullableCSSValue&); 108 bool parseFillImage(CSSParserValueList*, NullableCSSValue&);
109 109
110 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1, XFillPosition = 2, YFillPosition = 4 }; 110 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1, XFillPosition = 2, YFillPosition = 4 };
111 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe yword = 1 }; 111 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe yword = 1 };
112 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseFillPositionComponent(CSSPars erValueList*, unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillP ositionParsingMode = ResolveValuesAsPercent, Units = FUnknown); 112 NullableCSSValue parseFillPositionComponent(CSSParserValueList*, unsigned& c umulativeFlags, FillPositionFlag& individualFlag, FillPositionParsingMode = Reso lveValuesAsPercent, Units = FUnknown);
113 NullableCSSValue parseFillPositionX(CSSParserValueList*); 113 NullableCSSValue parseFillPositionX(CSSParserValueList*);
114 NullableCSSValue parseFillPositionY(CSSParserValueList*); 114 NullableCSSValue parseFillPositionY(CSSParserValueList*);
115 void parse2ValuesFillPosition(CSSParserValueList*, NullableCSSValue&, Nullab leCSSValue&, Units = FUnknown); 115 void parse2ValuesFillPosition(CSSParserValueList*, NullableCSSValue&, Nullab leCSSValue&, Units = FUnknown);
116 bool isPotentialPositionValue(CSSParserValue*); 116 bool isPotentialPositionValue(CSSParserValue*);
117 void parseFillPosition(CSSParserValueList*, NullableCSSValue&, NullableCSSVa lue&, Units = FUnknown); 117 void parseFillPosition(CSSParserValueList*, NullableCSSValue&, NullableCSSVa lue&, Units = FUnknown);
118 void parse3ValuesFillPosition(CSSParserValueList*, NullableCSSValue&, Nullab leCSSValue&, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>, PassRefPtrWillBeRawPtr<C SSPrimitiveValue>); 118 void parse3ValuesFillPosition(CSSParserValueList*, NullableCSSValue&, Nullab leCSSValue&, CSSPrimitiveValue, CSSPrimitiveValue);
119 void parse4ValuesFillPosition(CSSParserValueList*, NullableCSSValue&, Nullab leCSSValue&, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>, PassRefPtrWillBeRawPtr<C SSPrimitiveValue>); 119 void parse4ValuesFillPosition(CSSParserValueList*, NullableCSSValue&, Nullab leCSSValue&, CSSPrimitiveValue, CSSPrimitiveValue);
120 120
121 void parseFillRepeat(NullableCSSValue&, NullableCSSValue&); 121 void parseFillRepeat(NullableCSSValue&, NullableCSSValue&);
122 NullableCSSValue parseFillSize(CSSPropertyID); 122 NullableCSSValue parseFillSize(CSSPropertyID);
123 123
124 bool parseFillProperty(CSSPropertyID propId, CSSPropertyID& propId1, CSSProp ertyID& propId2, NullableCSSValue&, NullableCSSValue&); 124 bool parseFillProperty(CSSPropertyID propId, CSSPropertyID& propId1, CSSProp ertyID& propId2, NullableCSSValue&, NullableCSSValue&);
125 bool parseFillShorthand(CSSPropertyID, const CSSPropertyID* properties, int numProperties, bool important); 125 bool parseFillShorthand(CSSPropertyID, const CSSPropertyID* properties, int numProperties, bool important);
126 126
127 void addFillValue(NullableCSSValue& lval, CSSValue rval); 127 void addFillValue(NullableCSSValue& lval, CSSValue rval);
128 128
129 NullableCSSValue parseAnimationDelay(); 129 NullableCSSValue parseAnimationDelay();
(...skipping 12 matching lines...) Expand all
142 NullableCSSValue parseAnimationProperty(CSSPropertyID, bool useLegacyParsing ); 142 NullableCSSValue parseAnimationProperty(CSSPropertyID, bool useLegacyParsing );
143 PassRefPtrWillBeRawPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyI D, bool useLegacyParsing); 143 PassRefPtrWillBeRawPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyI D, bool useLegacyParsing);
144 bool parseAnimationShorthand(bool useLegacyParsing, bool important); 144 bool parseAnimationShorthand(bool useLegacyParsing, bool important);
145 bool parseTransitionShorthand(bool important); 145 bool parseTransitionShorthand(bool important);
146 146
147 NullableCSSValue parseColumnWidth(); 147 NullableCSSValue parseColumnWidth();
148 NullableCSSValue parseColumnCount(); 148 NullableCSSValue parseColumnCount();
149 bool parseColumnsShorthand(bool important); 149 bool parseColumnsShorthand(bool important);
150 150
151 NullableCSSValue parseGridPosition(); 151 NullableCSSValue parseGridPosition();
152 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti veValue>& numericValue, RefPtrWillBeRawPtr<CSSPrimitiveValue>& gridLineName); 152 bool parseIntegerOrCustomIdentFromGridPosition(NullableCSSValue& numericValu e, NullableCSSValue& gridLineName);
153 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); 153 bool parseGridItemPositionShorthand(CSSPropertyID, bool important);
154 bool parseGridTemplateRowsAndAreas(NullableCSSValue, bool important); 154 bool parseGridTemplateRowsAndAreas(NullableCSSValue, bool important);
155 bool parseGridTemplateShorthand(bool important); 155 bool parseGridTemplateShorthand(bool important);
156 bool parseGridShorthand(bool important); 156 bool parseGridShorthand(bool important);
157 bool parseGridAreaShorthand(bool important); 157 bool parseGridAreaShorthand(bool important);
158 bool parseSingleGridAreaLonghand(NullableCSSValue&); 158 bool parseSingleGridAreaLonghand(NullableCSSValue&);
159 NullableCSSValue parseGridTrackList(); 159 NullableCSSValue parseGridTrackList();
160 bool parseGridTrackRepeatFunction(CSSValueList&); 160 bool parseGridTrackRepeatFunction(CSSValueList&);
161 NullableCSSValue parseGridTrackSize(CSSParserValueList& inputList); 161 NullableCSSValue parseGridTrackSize(CSSParserValueList& inputList);
162 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); 162 NullableCSSValue parseGridBreadth(CSSParserValue*);
163 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&); 163 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&);
164 NullableCSSValue parseGridTemplateAreas(); 164 NullableCSSValue parseGridTemplateAreas();
165 bool parseGridLineNames(CSSParserValueList&, CSSValueList&, NullableCSSValue = nullptr); 165 bool parseGridLineNames(CSSParserValueList&, CSSValueList&, NullableCSSValue = nullptr);
166 NullableCSSValue parseGridAutoFlow(CSSParserValueList&); 166 NullableCSSValue parseGridAutoFlow(CSSParserValueList&);
167 167
168 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseClipShape(); 168 NullableCSSValue parseClipShape();
169 169
170 bool parseLegacyPosition(CSSPropertyID, bool important); 170 bool parseLegacyPosition(CSSPropertyID, bool important);
171 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important); 171 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important);
172 NullableCSSValue parseContentDistributionOverflowPosition(); 172 NullableCSSValue parseContentDistributionOverflowPosition();
173 173
174 NullableCSSValue parseShapeProperty(CSSPropertyID propId); 174 NullableCSSValue parseShapeProperty(CSSPropertyID propId);
175 NullableCSSValue parseBasicShapeAndOrBox(); 175 NullableCSSValue parseBasicShapeAndOrBox();
176 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBasicShape(); 176 NullableCSSValue parseBasicShape();
177 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); 177 NullableCSSValue parseShapeRadius(CSSParserValue*);
178 178
179 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueLi st* args); 179 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueLi st* args);
180 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueL ist* args); 180 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueL ist* args);
181 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueL ist* args); 181 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueL ist* args);
182 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueLis t* args); 182 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueLis t* args);
183 183
184 bool parseFont(bool important); 184 bool parseFont(bool important);
185 void parseSystemFont(bool important); 185 void parseSystemFont(bool important);
186 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily(); 186 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily();
187 187
188 NullableCSSValue parseCounter(int defaultValue); 188 NullableCSSValue parseCounter(int defaultValue);
189 NullableCSSValue parseCounterContent(CSSParserValueList* args, bool counters ); 189 NullableCSSValue parseCounterContent(CSSParserValueList* args, bool counters );
190 190
191 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars eAlpha); 191 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars eAlpha);
192 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par seAlpha); 192 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par seAlpha);
193 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(const CSSParserValue*, bool acceptQuirkyColors = false); 193 NullableCSSValue parseColor(const CSSParserValue*, bool acceptQuirkyColors = false);
194 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo lors = false); 194 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo lors = false);
195 195
196 bool acceptQuirkyColors(CSSPropertyID) const; 196 bool acceptQuirkyColors(CSSPropertyID) const;
197 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBackgroundColor(const CSSPars erValue*); 197 NullableCSSValue parseBackgroundColor(const CSSParserValue*);
198 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseTapHighlightColor(const CSSPa rserValue*); 198 NullableCSSValue parseTapHighlightColor(const CSSParserValue*);
199 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGradientStopColor(const CSSPa rserValue*); 199 NullableCSSValue parseGradientStopColor(const CSSParserValue*);
200 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseDeprecatedGradientStopColor(c onst CSSParserValue*); 200 NullableCSSValue parseDeprecatedGradientStopColor(const CSSParserValue*);
201 201
202 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseLineHeight(); 202 NullableCSSValue parseLineHeight();
203 bool parseFontSize(bool important); 203 bool parseFontSize(bool important);
204 bool parseFontVariant(bool important); 204 bool parseFontVariant(bool important);
205 bool parseFontWeight(bool important); 205 bool parseFontWeight(bool important);
206 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceSrc(); 206 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceSrc();
207 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceUnicodeRange(); 207 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceUnicodeRange();
208 208
209 bool parseSVGValue(CSSPropertyID propId, bool important); 209 bool parseSVGValue(CSSPropertyID propId, bool important);
210 NullableCSSValue parseSVGStrokeDasharray(); 210 NullableCSSValue parseSVGStrokeDasharray();
211 211
212 NullableCSSValue parsePaintOrder() const; 212 NullableCSSValue parsePaintOrder() const;
213 213
214 // CSS3 Parsing Routines (for properties specific to CSS3) 214 // CSS3 Parsing Routines (for properties specific to CSS3)
215 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro pertyID); 215 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro pertyID);
216 bool parseBorderImageShorthand(CSSPropertyID, bool important); 216 bool parseBorderImageShorthand(CSSPropertyID, bool important);
217 NullableCSSValue parseBorderImage(CSSPropertyID); 217 NullableCSSValue parseBorderImage(CSSPropertyID);
218 bool parseBorderImageRepeat(NullableCSSValue&); 218 bool parseBorderImageRepeat(NullableCSSValue&);
219 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS liceValue>&); 219 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS liceValue>&);
220 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSPrimitiveValue>&); 220 bool parseBorderImageWidth(NullableCSSValue&);
221 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSPrimitiveValue>&); 221 bool parseBorderImageOutset(NullableCSSValue&);
222 bool parseBorderRadius(CSSPropertyID, bool important); 222 bool parseBorderRadius(CSSPropertyID, bool important);
223 223
224 NullableCSSValue parseReflect(); 224 NullableCSSValue parseReflect();
225 225
226 bool parseFlex(CSSParserValueList* args, bool important); 226 bool parseFlex(CSSParserValueList* args, bool important);
227 227
228 NullableCSSValue parsePosition(CSSParserValueList*); 228 NullableCSSValue parsePosition(CSSParserValueList*);
229 NullableCSSValue parsePositionList(CSSParserValueList*); 229 NullableCSSValue parsePositionList(CSSParserValueList*);
230 230
231 // Image generators 231 // Image generators
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 PassRefPtrWillBeRawPtr<CSSLineBoxContainValue> parseLineBoxContain(); 267 PassRefPtrWillBeRawPtr<CSSLineBoxContainValue> parseLineBoxContain();
268 bool parseCalculation(CSSParserValue*, ValueRange); 268 bool parseCalculation(CSSParserValue*, ValueRange);
269 269
270 bool parseFontFeatureTag(CSSValueList*); 270 bool parseFontFeatureTag(CSSValueList*);
271 NullableCSSValue parseFontFeatureSettings(); 271 NullableCSSValue parseFontFeatureSettings();
272 272
273 bool parseFontVariantLigatures(bool important); 273 bool parseFontVariantLigatures(bool important);
274 274
275 bool parseGeneratedImage(CSSParserValueList*, NullableCSSValue&); 275 bool parseGeneratedImage(CSSParserValueList*, NullableCSSValue&);
276 276
277 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar serValue*); 277 CSSPrimitiveValue createPrimitiveNumericValue(CSSParserValue*);
278 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars erValue*); 278 CSSPrimitiveValue createPrimitiveStringValue(CSSParserValue*);
279 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveCustomIdentValue(CS SParserValue*); 279 CSSPrimitiveValue createPrimitiveCustomIdentValue(CSSParserValue*);
280 280
281 CSSValue createCSSImageValueWithReferrer(const String& rawValue, const KURL& ); 281 CSSValue createCSSImageValueWithReferrer(const String& rawValue, const KURL& );
282 282
283 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*); 283 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*);
284 284
285 enum SizeParameterType { 285 enum SizeParameterType {
286 None, 286 None,
287 Auto, 287 Auto,
288 Length, 288 Length,
289 PageSize, 289 PageSize,
290 Orientation, 290 Orientation,
291 }; 291 };
292 292
293 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parsePage(); 293 NullableCSSValue parsePage();
294 PassRefPtrWillBeRawPtr<CSSValueList> parseSize(); 294 PassRefPtrWillBeRawPtr<CSSValueList> parseSize();
295 SizeParameterType parseSizeParameter(CSSValueList* parsedValues, CSSParserVa lue*, SizeParameterType prevParamType); 295 SizeParameterType parseSizeParameter(CSSValueList* parsedValues, CSSParserVa lue*, SizeParameterType prevParamType);
296 296
297 bool parseFontFaceSrcURI(CSSValueList*); 297 bool parseFontFaceSrcURI(CSSValueList*);
298 bool parseFontFaceSrcLocal(CSSValueList*); 298 bool parseFontFaceSrcLocal(CSSValueList*);
299 299
300 class ImplicitScope { 300 class ImplicitScope {
301 STACK_ALLOCATED(); 301 STACK_ALLOCATED();
302 WTF_MAKE_NONCOPYABLE(ImplicitScope); 302 WTF_MAKE_NONCOPYABLE(ImplicitScope);
303 public: 303 public:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 346
347 bool validWidthOrHeight(CSSParserValue*, Units); 347 bool validWidthOrHeight(CSSParserValue*, Units);
348 348
349 bool validCalculationUnit(CSSParserValue*, Units, ReleaseParsedCalcValueCond ition releaseCalc = DoNotReleaseParsedCalcValue); 349 bool validCalculationUnit(CSSParserValue*, Units, ReleaseParsedCalcValueCond ition releaseCalc = DoNotReleaseParsedCalcValue);
350 350
351 bool shouldAcceptUnitLessValues(CSSParserValue*, Units, CSSParserMode); 351 bool shouldAcceptUnitLessValues(CSSParserValue*, Units, CSSParserMode);
352 352
353 inline bool validUnit(CSSParserValue* value, Units unitflags, ReleaseParsedC alcValueCondition releaseCalc = DoNotReleaseParsedCalcValue) { return validUnit( value, unitflags, m_context.mode(), releaseCalc); } 353 inline bool validUnit(CSSParserValue* value, Units unitflags, ReleaseParsedC alcValueCondition releaseCalc = DoNotReleaseParsedCalcValue) { return validUnit( value, unitflags, m_context.mode(), releaseCalc); }
354 bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValue Condition releaseCalc = DoNotReleaseParsedCalcValue); 354 bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValue Condition releaseCalc = DoNotReleaseParsedCalcValue);
355 355
356 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSPrimitiveValue>&); 356 bool parseBorderImageQuad(Units, NullableCSSValue&);
357 int colorIntFromValue(CSSParserValue*); 357 int colorIntFromValue(CSSParserValue*);
358 bool isCalculation(CSSParserValue*); 358 bool isCalculation(CSSParserValue*);
359 359
360 bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&); 360 bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&);
361 361
362 bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop& ); 362 bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop& );
363 363
364 void commitBorderImageProperty(CSSPropertyID, NullableCSSValue, bool importa nt); 364 void commitBorderImageProperty(CSSPropertyID, NullableCSSValue, bool importa nt);
365 365
366 NullableCSSValue parseScrollSnapPoints(); 366 NullableCSSValue parseScrollSnapPoints();
(...skipping 16 matching lines...) Expand all
383 bool m_implicitShorthand; 383 bool m_implicitShorthand;
384 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; 384 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation;
385 }; 385 };
386 386
387 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); 387 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&);
388 CSSValueID cssValueKeywordID(const CSSParserString&); 388 CSSValueID cssValueKeywordID(const CSSParserString&);
389 389
390 } // namespace blink 390 } // namespace blink
391 391
392 #endif // CSSPropertyParser_h 392 #endif // CSSPropertyParser_h
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSParser.cpp ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698