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

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

Issue 148523016: Move most of the [Pass]RefPtr's of CSSPrimitiveValue to our transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Sync to latest change Created 6 years, 10 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 | Annotate | Revision Log
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 void parseSheet(StyleSheetContents*, const String&, const TextPosition& star tPosition = TextPosition::minimumPosition(), CSSParserObserver* = 0, bool = fals e); 87 void parseSheet(StyleSheetContents*, const String&, const TextPosition& star tPosition = TextPosition::minimumPosition(), CSSParserObserver* = 0, bool = fals e);
88 PassRefPtr<StyleRuleBase> parseRule(StyleSheetContents*, const String&); 88 PassRefPtr<StyleRuleBase> parseRule(StyleSheetContents*, const String&);
89 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin g&); 89 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin g&);
90 bool parseSupportsCondition(const String&); 90 bool parseSupportsCondition(const String&);
91 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, CSSParserMode, StyleSheetContents*); 91 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, CSSParserMode, StyleSheetContents*);
92 static bool parseColor(RGBA32& color, const String&, bool strict = false); 92 static bool parseColor(RGBA32& color, const String&, bool strict = false);
93 static bool parseSystemColor(RGBA32& color, const String&, Document*); 93 static bool parseSystemColor(RGBA32& color, const String&, Document*);
94 static PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceValue(const AtomicS tring&); 94 static PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceValue(const AtomicS tring&);
95 static PassRefPtr<CSSValue> parseAnimationTimingFunctionValue(const String&) ; 95 static PassRefPtr<CSSValue> parseAnimationTimingFunctionValue(const String&) ;
96 PassRefPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ident, CSSParse rValue*); 96 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ide nt, CSSParserValue*);
97 bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObse rver*, StyleSheetContents* contextStyleSheet); 97 bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObse rver*, StyleSheetContents* contextStyleSheet);
98 static PassRefPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(con st String&, Element*); 98 static PassRefPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(con st String&, Element*);
99 PassRefPtr<MediaQuerySet> parseMediaQueryList(const String&); 99 PassRefPtr<MediaQuerySet> parseMediaQueryList(const String&);
100 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&); 100 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&);
101 101
102 void addPropertyWithPrefixingVariant(CSSPropertyID, PassRefPtr<CSSValue>, bo ol important, bool implicit = false); 102 void addPropertyWithPrefixingVariant(CSSPropertyID, PassRefPtr<CSSValue>, bo ol important, bool implicit = false);
103 void addProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important, bool i mplicit = false); 103 void addProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important, bool i mplicit = false);
104 void rollbackLastProperties(int num); 104 void rollbackLastProperties(int num);
105 bool hasProperties() const { return !m_parsedProperties.isEmpty(); } 105 bool hasProperties() const { return !m_parsedProperties.isEmpty(); }
106 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>, bool); 106 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>, bool);
107 void setCurrentProperty(CSSPropertyID); 107 void setCurrentProperty(CSSPropertyID);
108 108
109 bool parseValue(CSSPropertyID, bool important); 109 bool parseValue(CSSPropertyID, bool important);
110 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor tant); 110 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor tant);
111 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor tant); 111 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor tant);
112 bool parseContent(CSSPropertyID, bool important); 112 bool parseContent(CSSPropertyID, bool important);
113 bool parseQuotes(CSSPropertyID, bool important); 113 bool parseQuotes(CSSPropertyID, bool important);
114 114
115 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, const Document&); 115 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, const Document&);
116 116
117 PassRefPtr<CSSValue> parseAttr(CSSParserValueList* args); 117 PassRefPtr<CSSValue> parseAttr(CSSParserValueList* args);
118 118
119 PassRefPtr<CSSValue> parseBackgroundColor(); 119 PassRefPtr<CSSValue> parseBackgroundColor();
120 120
121 bool parseFillImage(CSSParserValueList*, RefPtr<CSSValue>&); 121 bool parseFillImage(CSSParserValueList*, RefPtr<CSSValue>&);
122 122
123 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1, XFillPosition = 2, YFillPosition = 4 }; 123 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1, XFillPosition = 2, YFillPosition = 4 };
124 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe yword = 1 }; 124 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe yword = 1 };
125 PassRefPtr<CSSPrimitiveValue> parseFillPositionComponent(CSSParserValueList* , unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillPositionParsi ngMode = ResolveValuesAsPercent); 125 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseFillPositionComponent(CSSPars erValueList*, unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillP ositionParsingMode = ResolveValuesAsPercent);
126 PassRefPtr<CSSValue> parseFillPositionX(CSSParserValueList*); 126 PassRefPtr<CSSValue> parseFillPositionX(CSSParserValueList*);
127 PassRefPtr<CSSValue> parseFillPositionY(CSSParserValueList*); 127 PassRefPtr<CSSValue> parseFillPositionY(CSSParserValueList*);
128 void parse2ValuesFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr <CSSValue>&); 128 void parse2ValuesFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr <CSSValue>&);
129 bool isPotentialPositionValue(CSSParserValue*); 129 bool isPotentialPositionValue(CSSParserValue*);
130 void parseFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr<CSSVal ue>&); 130 void parseFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr<CSSVal ue>&);
131 void parse3ValuesFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr <CSSValue>&, PassRefPtr<CSSPrimitiveValue>, PassRefPtr<CSSPrimitiveValue>); 131 void parse3ValuesFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr <CSSValue>&, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>, PassRefPtrWillBeRawPtr<C SSPrimitiveValue>);
132 void parse4ValuesFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr <CSSValue>&, PassRefPtr<CSSPrimitiveValue>, PassRefPtr<CSSPrimitiveValue>); 132 void parse4ValuesFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr <CSSValue>&, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>, PassRefPtrWillBeRawPtr<C SSPrimitiveValue>);
133 133
134 void parseFillRepeat(RefPtr<CSSValue>&, RefPtr<CSSValue>&); 134 void parseFillRepeat(RefPtr<CSSValue>&, RefPtr<CSSValue>&);
135 PassRefPtr<CSSValue> parseFillSize(CSSPropertyID, bool &allowComma); 135 PassRefPtr<CSSValue> parseFillSize(CSSPropertyID, bool &allowComma);
136 136
137 bool parseFillProperty(CSSPropertyID propId, CSSPropertyID& propId1, CSSProp ertyID& propId2, RefPtr<CSSValue>&, RefPtr<CSSValue>&); 137 bool parseFillProperty(CSSPropertyID propId, CSSPropertyID& propId1, CSSProp ertyID& propId2, RefPtr<CSSValue>&, RefPtr<CSSValue>&);
138 bool parseFillShorthand(CSSPropertyID, const CSSPropertyID* properties, int numProperties, bool important); 138 bool parseFillShorthand(CSSPropertyID, const CSSPropertyID* properties, int numProperties, bool important);
139 139
140 void addFillValue(RefPtr<CSSValue>& lval, PassRefPtr<CSSValue> rval); 140 void addFillValue(RefPtr<CSSValue>& lval, PassRefPtr<CSSValue> rval);
141 141
142 void addAnimationValue(RefPtr<CSSValue>& lval, PassRefPtr<CSSValue> rval); 142 void addAnimationValue(RefPtr<CSSValue>& lval, PassRefPtr<CSSValue> rval);
(...skipping 12 matching lines...) Expand all
155 bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double& result); 155 bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double& result);
156 bool parseAnimationProperty(CSSPropertyID, RefPtr<CSSValue>&, AnimationParse Context&); 156 bool parseAnimationProperty(CSSPropertyID, RefPtr<CSSValue>&, AnimationParse Context&);
157 bool parseTransitionShorthand(CSSPropertyID, bool important); 157 bool parseTransitionShorthand(CSSPropertyID, bool important);
158 bool parseAnimationShorthand(CSSPropertyID, bool important); 158 bool parseAnimationShorthand(CSSPropertyID, bool important);
159 159
160 PassRefPtr<CSSValue> parseColumnWidth(); 160 PassRefPtr<CSSValue> parseColumnWidth();
161 PassRefPtr<CSSValue> parseColumnCount(); 161 PassRefPtr<CSSValue> parseColumnCount();
162 bool parseColumnsShorthand(bool important); 162 bool parseColumnsShorthand(bool important);
163 163
164 PassRefPtr<CSSValue> parseGridPosition(); 164 PassRefPtr<CSSValue> parseGridPosition();
165 bool parseIntegerOrStringFromGridPosition(RefPtr<CSSPrimitiveValue>& numeric Value, RefPtr<CSSPrimitiveValue>& gridLineName); 165 bool parseIntegerOrStringFromGridPosition(RefPtrWillBeRawPtr<CSSPrimitiveVal ue>& numericValue, RefPtrWillBeRawPtr<CSSPrimitiveValue>& gridLineName);
166 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); 166 bool parseGridItemPositionShorthand(CSSPropertyID, bool important);
167 bool parseGridAreaShorthand(bool important); 167 bool parseGridAreaShorthand(bool important);
168 bool parseSingleGridAreaLonghand(RefPtr<CSSValue>&); 168 bool parseSingleGridAreaLonghand(RefPtr<CSSValue>&);
169 bool parseGridTrackList(CSSPropertyID, bool important); 169 bool parseGridTrackList(CSSPropertyID, bool important);
170 bool parseGridTrackRepeatFunction(CSSValueList&); 170 bool parseGridTrackRepeatFunction(CSSValueList&);
171 PassRefPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inputList); 171 PassRefPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inputList);
172 PassRefPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); 172 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*);
173 PassRefPtr<CSSValue> parseGridTemplateAreas(); 173 PassRefPtr<CSSValue> parseGridTemplateAreas();
174 void parseGridLineNames(CSSParserValueList* inputList, CSSValueList&); 174 void parseGridLineNames(CSSParserValueList* inputList, CSSValueList&);
175 175
176 bool parseClipShape(CSSPropertyID, bool important); 176 bool parseClipShape(CSSPropertyID, bool important);
177 177
178 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important); 178 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important);
179 179
180 PassRefPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); 180 PassRefPtr<CSSValue> parseShapeProperty(CSSPropertyID propId);
181 PassRefPtr<CSSPrimitiveValue> parseBasicShape(); 181 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBasicShape();
182 PassRefPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); 182 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*);
183 183
184 PassRefPtr<CSSBasicShape> parseBasicShapeRectangle(CSSParserValueList* args) ; 184 PassRefPtr<CSSBasicShape> parseBasicShapeRectangle(CSSParserValueList* args) ;
185 PassRefPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueList* args); 185 PassRefPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueList* args);
186 PassRefPtr<CSSBasicShape> parseDeprecatedBasicShapeCircle(CSSParserValueList * args); 186 PassRefPtr<CSSBasicShape> parseDeprecatedBasicShapeCircle(CSSParserValueList * args);
187 PassRefPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueList* args); 187 PassRefPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueList* args);
188 PassRefPtr<CSSBasicShape> parseDeprecatedBasicShapeEllipse(CSSParserValueLis t*); 188 PassRefPtr<CSSBasicShape> parseDeprecatedBasicShapeEllipse(CSSParserValueLis t*);
189 PassRefPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueList* args); 189 PassRefPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueList* args);
190 PassRefPtr<CSSBasicShape> parseBasicShapeInsetRectangle(CSSParserValueList* args); 190 PassRefPtr<CSSBasicShape> parseBasicShapeInsetRectangle(CSSParserValueList* args);
191 PassRefPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueList* args); 191 PassRefPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueList* args);
192 192
193 bool parseFont(bool important); 193 bool parseFont(bool important);
194 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily(); 194 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily();
195 195
196 bool parseCounter(CSSPropertyID, int defaultValue, bool important); 196 bool parseCounter(CSSPropertyID, int defaultValue, bool important);
197 PassRefPtr<CSSValue> parseCounterContent(CSSParserValueList* args, bool coun ters); 197 PassRefPtr<CSSValue> parseCounterContent(CSSParserValueList* args, bool coun ters);
198 198
199 bool parseColorParameters(CSSParserValue*, int* colorValues, bool parseAlpha ); 199 bool parseColorParameters(CSSParserValue*, int* colorValues, bool parseAlpha );
200 bool parseHSLParameters(CSSParserValue*, double* colorValues, bool parseAlph a); 200 bool parseHSLParameters(CSSParserValue*, double* colorValues, bool parseAlph a);
201 PassRefPtr<CSSPrimitiveValue> parseColor(CSSParserValue* = 0); 201 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(CSSParserValue* = 0);
202 bool parseColorFromValue(CSSParserValue*, RGBA32&); 202 bool parseColorFromValue(CSSParserValue*, RGBA32&);
203 void parseSelector(const String&, CSSSelectorList&); 203 void parseSelector(const String&, CSSSelectorList&);
204 204
205 template<typename StringType> 205 template<typename StringType>
206 static bool fastParseColor(RGBA32&, const StringType&, bool strict); 206 static bool fastParseColor(RGBA32&, const StringType&, bool strict);
207 207
208 bool parseLineHeight(bool important); 208 bool parseLineHeight(bool important);
209 bool parseFontSize(bool important); 209 bool parseFontSize(bool important);
210 bool parseFontVariant(bool important); 210 bool parseFontVariant(bool important);
211 bool parseFontWeight(bool important); 211 bool parseFontWeight(bool important);
212 bool parseFontFaceSrc(); 212 bool parseFontFaceSrc();
213 bool parseFontFaceUnicodeRange(); 213 bool parseFontFaceUnicodeRange();
214 214
215 bool parseSVGValue(CSSPropertyID propId, bool important); 215 bool parseSVGValue(CSSPropertyID propId, bool important);
216 PassRefPtr<CSSValue> parseSVGPaint(); 216 PassRefPtr<CSSValue> parseSVGPaint();
217 PassRefPtr<CSSValue> parseSVGColor(); 217 PassRefPtr<CSSValue> parseSVGColor();
218 PassRefPtr<CSSValue> parseSVGStrokeDasharray(); 218 PassRefPtr<CSSValue> parseSVGStrokeDasharray();
219 219
220 PassRefPtr<CSSValue> parsePaintOrder() const; 220 PassRefPtr<CSSValue> parsePaintOrder() const;
221 221
222 // CSS3 Parsing Routines (for properties specific to CSS3) 222 // CSS3 Parsing Routines (for properties specific to CSS3)
223 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro pertyID); 223 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro pertyID);
224 bool parseBorderImageShorthand(CSSPropertyID, bool important); 224 bool parseBorderImageShorthand(CSSPropertyID, bool important);
225 PassRefPtr<CSSValue> parseBorderImage(CSSPropertyID); 225 PassRefPtr<CSSValue> parseBorderImage(CSSPropertyID);
226 bool parseBorderImageRepeat(RefPtr<CSSValue>&); 226 bool parseBorderImageRepeat(RefPtr<CSSValue>&);
227 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS liceValue>&); 227 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS liceValue>&);
228 bool parseBorderImageWidth(RefPtr<CSSPrimitiveValue>&); 228 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSPrimitiveValue>&);
229 bool parseBorderImageOutset(RefPtr<CSSPrimitiveValue>&); 229 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSPrimitiveValue>&);
230 bool parseBorderRadius(CSSPropertyID, bool important); 230 bool parseBorderRadius(CSSPropertyID, bool important);
231 231
232 bool parseAspectRatio(bool important); 232 bool parseAspectRatio(bool important);
233 233
234 bool parseReflect(CSSPropertyID, bool important); 234 bool parseReflect(CSSPropertyID, bool important);
235 235
236 bool parseFlex(CSSParserValueList* args, bool important); 236 bool parseFlex(CSSParserValueList* args, bool important);
237 237
238 bool parseObjectPosition(bool important); 238 bool parseObjectPosition(bool important);
239 239
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 void resumeErrorLogging() { m_ignoreErrors = false; } 405 void resumeErrorLogging() { m_ignoreErrors = false; }
406 void setLocationLabel(const CSSParserLocation& location) { m_locationLabel = location; } 406 void setLocationLabel(const CSSParserLocation& location) { m_locationLabel = location; }
407 const CSSParserLocation& lastLocationLabel() const { return m_locationLabel; } 407 const CSSParserLocation& lastLocationLabel() const { return m_locationLabel; }
408 408
409 void tokenToLowerCase(const CSSParserString& token); 409 void tokenToLowerCase(const CSSParserString& token);
410 410
411 void markViewportRuleBodyStart() { m_inViewport = true; } 411 void markViewportRuleBodyStart() { m_inViewport = true; }
412 void markViewportRuleBodyEnd() { m_inViewport = false; } 412 void markViewportRuleBodyEnd() { m_inViewport = false; }
413 StyleRuleBase* createViewportRule(); 413 StyleRuleBase* createViewportRule();
414 414
415 PassRefPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSParserValue*); 415 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar serValue*);
416 PassRefPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSParserValue*); 416 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars erValue*);
417 417
418 CSSParserLocation currentLocation() { return m_tokenizer.currentLocation(); } 418 CSSParserLocation currentLocation() { return m_tokenizer.currentLocation(); }
419 419
420 private: 420 private:
421 enum PropertyType { 421 enum PropertyType {
422 PropertyExplicit, 422 PropertyExplicit,
423 PropertyImplicit 423 PropertyImplicit
424 }; 424 };
425 425
426 class ImplicitScope { 426 class ImplicitScope {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 bool isLoggingErrors(); 582 bool isLoggingErrors();
583 void logError(const String& message, const CSSParserLocation&); 583 void logError(const String& message, const CSSParserLocation&);
584 584
585 bool validCalculationUnit(CSSParserValue*, Units, ReleaseParsedCalcValueCond ition releaseCalc = DoNotReleaseParsedCalcValue); 585 bool validCalculationUnit(CSSParserValue*, Units, ReleaseParsedCalcValueCond ition releaseCalc = DoNotReleaseParsedCalcValue);
586 586
587 bool shouldAcceptUnitLessValues(CSSParserValue*, Units, CSSParserMode); 587 bool shouldAcceptUnitLessValues(CSSParserValue*, Units, CSSParserMode);
588 588
589 inline bool validUnit(CSSParserValue* value, Units unitflags, ReleaseParsedC alcValueCondition releaseCalc = DoNotReleaseParsedCalcValue) { return validUnit( value, unitflags, m_context.mode(), releaseCalc); } 589 inline bool validUnit(CSSParserValue* value, Units unitflags, ReleaseParsedC alcValueCondition releaseCalc = DoNotReleaseParsedCalcValue) { return validUnit( value, unitflags, m_context.mode(), releaseCalc); }
590 bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValue Condition releaseCalc = DoNotReleaseParsedCalcValue); 590 bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValue Condition releaseCalc = DoNotReleaseParsedCalcValue);
591 591
592 bool parseBorderImageQuad(Units, RefPtr<CSSPrimitiveValue>&); 592 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSPrimitiveValue>&);
593 int colorIntFromValue(CSSParserValue*); 593 int colorIntFromValue(CSSParserValue*);
594 double parsedDouble(CSSParserValue*, ReleaseParsedCalcValueCondition release Calc = DoNotReleaseParsedCalcValue); 594 double parsedDouble(CSSParserValue*, ReleaseParsedCalcValueCondition release Calc = DoNotReleaseParsedCalcValue);
595 bool isCalculation(CSSParserValue*); 595 bool isCalculation(CSSParserValue*);
596 596
597 CSSTokenizer m_tokenizer; 597 CSSTokenizer m_tokenizer;
598 598
599 friend class TransformOperationInfo; 599 friend class TransformOperationInfo;
600 friend class FilterOperationInfo; 600 friend class FilterOperationInfo;
601 }; 601 };
602 602
(...skipping 22 matching lines...) Expand all
625 bool isValidNthToken(const CSSParserString&); 625 bool isValidNthToken(const CSSParserString&);
626 626
627 inline int cssyylex(void* yylval, BisonCSSParser* parser) 627 inline int cssyylex(void* yylval, BisonCSSParser* parser)
628 { 628 {
629 return parser->m_tokenizer.lex(yylval); 629 return parser->m_tokenizer.lex(yylval);
630 } 630 }
631 631
632 } // namespace WebCore 632 } // namespace WebCore
633 633
634 #endif // BisonCSSParser_h 634 #endif // BisonCSSParser_h
OLDNEW
« no previous file with comments | « Source/core/css/SVGCSSComputedStyleDeclaration.cpp ('k') | Source/core/css/parser/BisonCSSParser-in.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698