| OLD | NEW |
| 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 Loading... |
| 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 void storeVariableDeclaration(const CSSParserString&, PassOwnPtr<CSSParserVa
lueList>, bool important); | 116 void storeVariableDeclaration(const CSSParserString&, PassOwnPtr<CSSParserVa
lueList>, bool important); |
| 117 | 117 |
| 118 PassRefPtr<CSSValue> parseAttr(CSSParserValueList* args); | 118 PassRefPtr<CSSValue> parseAttr(CSSParserValueList* args); |
| 119 | 119 |
| 120 PassRefPtr<CSSValue> parseBackgroundColor(); | 120 PassRefPtr<CSSValue> parseBackgroundColor(); |
| 121 | 121 |
| 122 bool parseFillImage(CSSParserValueList*, RefPtr<CSSValue>&); | 122 bool parseFillImage(CSSParserValueList*, RefPtr<CSSValue>&); |
| 123 | 123 |
| 124 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1,
XFillPosition = 2, YFillPosition = 4 }; | 124 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1,
XFillPosition = 2, YFillPosition = 4 }; |
| 125 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe
yword = 1 }; | 125 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe
yword = 1 }; |
| 126 PassRefPtr<CSSPrimitiveValue> parseFillPositionComponent(CSSParserValueList*
, unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillPositionParsi
ngMode = ResolveValuesAsPercent); | 126 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseFillPositionComponent(CSSPars
erValueList*, unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillP
ositionParsingMode = ResolveValuesAsPercent); |
| 127 PassRefPtr<CSSValue> parseFillPositionX(CSSParserValueList*); | 127 PassRefPtr<CSSValue> parseFillPositionX(CSSParserValueList*); |
| 128 PassRefPtr<CSSValue> parseFillPositionY(CSSParserValueList*); | 128 PassRefPtr<CSSValue> parseFillPositionY(CSSParserValueList*); |
| 129 void parse2ValuesFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr
<CSSValue>&); | 129 void parse2ValuesFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr
<CSSValue>&); |
| 130 bool isPotentialPositionValue(CSSParserValue*); | 130 bool isPotentialPositionValue(CSSParserValue*); |
| 131 void parseFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr<CSSVal
ue>&); | 131 void parseFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr<CSSVal
ue>&); |
| 132 void parse3ValuesFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr
<CSSValue>&, PassRefPtr<CSSPrimitiveValue>, PassRefPtr<CSSPrimitiveValue>); | 132 void parse3ValuesFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr
<CSSValue>&, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>, PassRefPtrWillBeRawPtr<C
SSPrimitiveValue>); |
| 133 void parse4ValuesFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr
<CSSValue>&, PassRefPtr<CSSPrimitiveValue>, PassRefPtr<CSSPrimitiveValue>); | 133 void parse4ValuesFillPosition(CSSParserValueList*, RefPtr<CSSValue>&, RefPtr
<CSSValue>&, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>, PassRefPtrWillBeRawPtr<C
SSPrimitiveValue>); |
| 134 | 134 |
| 135 void parseFillRepeat(RefPtr<CSSValue>&, RefPtr<CSSValue>&); | 135 void parseFillRepeat(RefPtr<CSSValue>&, RefPtr<CSSValue>&); |
| 136 PassRefPtr<CSSValue> parseFillSize(CSSPropertyID, bool &allowComma); | 136 PassRefPtr<CSSValue> parseFillSize(CSSPropertyID, bool &allowComma); |
| 137 | 137 |
| 138 bool parseFillProperty(CSSPropertyID propId, CSSPropertyID& propId1, CSSProp
ertyID& propId2, RefPtr<CSSValue>&, RefPtr<CSSValue>&); | 138 bool parseFillProperty(CSSPropertyID propId, CSSPropertyID& propId1, CSSProp
ertyID& propId2, RefPtr<CSSValue>&, RefPtr<CSSValue>&); |
| 139 bool parseFillShorthand(CSSPropertyID, const CSSPropertyID* properties, int
numProperties, bool important); | 139 bool parseFillShorthand(CSSPropertyID, const CSSPropertyID* properties, int
numProperties, bool important); |
| 140 | 140 |
| 141 void addFillValue(RefPtr<CSSValue>& lval, PassRefPtr<CSSValue> rval); | 141 void addFillValue(RefPtr<CSSValue>& lval, PassRefPtr<CSSValue> rval); |
| 142 | 142 |
| 143 void addAnimationValue(RefPtr<CSSValue>& lval, PassRefPtr<CSSValue> rval); | 143 void addAnimationValue(RefPtr<CSSValue>& lval, PassRefPtr<CSSValue> rval); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 156 bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double&
result); | 156 bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double&
result); |
| 157 bool parseAnimationProperty(CSSPropertyID, RefPtr<CSSValue>&, AnimationParse
Context&); | 157 bool parseAnimationProperty(CSSPropertyID, RefPtr<CSSValue>&, AnimationParse
Context&); |
| 158 bool parseTransitionShorthand(CSSPropertyID, bool important); | 158 bool parseTransitionShorthand(CSSPropertyID, bool important); |
| 159 bool parseAnimationShorthand(CSSPropertyID, bool important); | 159 bool parseAnimationShorthand(CSSPropertyID, bool important); |
| 160 | 160 |
| 161 PassRefPtr<CSSValue> parseColumnWidth(); | 161 PassRefPtr<CSSValue> parseColumnWidth(); |
| 162 PassRefPtr<CSSValue> parseColumnCount(); | 162 PassRefPtr<CSSValue> parseColumnCount(); |
| 163 bool parseColumnsShorthand(bool important); | 163 bool parseColumnsShorthand(bool important); |
| 164 | 164 |
| 165 PassRefPtr<CSSValue> parseGridPosition(); | 165 PassRefPtr<CSSValue> parseGridPosition(); |
| 166 bool parseIntegerOrStringFromGridPosition(RefPtr<CSSPrimitiveValue>& numeric
Value, RefPtr<CSSPrimitiveValue>& gridLineName); | 166 bool parseIntegerOrStringFromGridPosition(RefPtrWillBeRawPtr<CSSPrimitiveVal
ue>& numericValue, RefPtrWillBeRawPtr<CSSPrimitiveValue>& gridLineName); |
| 167 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); | 167 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); |
| 168 bool parseGridAreaShorthand(bool important); | 168 bool parseGridAreaShorthand(bool important); |
| 169 bool parseSingleGridAreaLonghand(RefPtr<CSSValue>&); | 169 bool parseSingleGridAreaLonghand(RefPtr<CSSValue>&); |
| 170 bool parseGridTrackList(CSSPropertyID, bool important); | 170 bool parseGridTrackList(CSSPropertyID, bool important); |
| 171 bool parseGridTrackRepeatFunction(CSSValueList&); | 171 bool parseGridTrackRepeatFunction(CSSValueList&); |
| 172 PassRefPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inputList); | 172 PassRefPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inputList); |
| 173 PassRefPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); | 173 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); |
| 174 PassRefPtr<CSSValue> parseGridTemplateAreas(); | 174 PassRefPtr<CSSValue> parseGridTemplateAreas(); |
| 175 void parseGridLineNames(CSSParserValueList* inputList, CSSValueList&); | 175 void parseGridLineNames(CSSParserValueList* inputList, CSSValueList&); |
| 176 | 176 |
| 177 bool parseClipShape(CSSPropertyID, bool important); | 177 bool parseClipShape(CSSPropertyID, bool important); |
| 178 | 178 |
| 179 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important); | 179 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important); |
| 180 | 180 |
| 181 PassRefPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); | 181 PassRefPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); |
| 182 PassRefPtr<CSSPrimitiveValue> parseBasicShape(); | 182 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBasicShape(); |
| 183 PassRefPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); | 183 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); |
| 184 | 184 |
| 185 PassRefPtr<CSSBasicShape> parseBasicShapeRectangle(CSSParserValueList* args)
; | 185 PassRefPtr<CSSBasicShape> parseBasicShapeRectangle(CSSParserValueList* args)
; |
| 186 PassRefPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueList* args); | 186 PassRefPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueList* args); |
| 187 PassRefPtr<CSSBasicShape> parseDeprecatedBasicShapeCircle(CSSParserValueList
* args); | 187 PassRefPtr<CSSBasicShape> parseDeprecatedBasicShapeCircle(CSSParserValueList
* args); |
| 188 PassRefPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueList* args); | 188 PassRefPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueList* args); |
| 189 PassRefPtr<CSSBasicShape> parseDeprecatedBasicShapeEllipse(CSSParserValueLis
t*); | 189 PassRefPtr<CSSBasicShape> parseDeprecatedBasicShapeEllipse(CSSParserValueLis
t*); |
| 190 PassRefPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueList* args); | 190 PassRefPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueList* args); |
| 191 PassRefPtr<CSSBasicShape> parseBasicShapeInsetRectangle(CSSParserValueList*
args); | 191 PassRefPtr<CSSBasicShape> parseBasicShapeInsetRectangle(CSSParserValueList*
args); |
| 192 PassRefPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueList* args); | 192 PassRefPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueList* args); |
| 193 | 193 |
| 194 bool parseFont(bool important); | 194 bool parseFont(bool important); |
| 195 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily(); | 195 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily(); |
| 196 | 196 |
| 197 bool parseCounter(CSSPropertyID, int defaultValue, bool important); | 197 bool parseCounter(CSSPropertyID, int defaultValue, bool important); |
| 198 PassRefPtr<CSSValue> parseCounterContent(CSSParserValueList* args, bool coun
ters); | 198 PassRefPtr<CSSValue> parseCounterContent(CSSParserValueList* args, bool coun
ters); |
| 199 | 199 |
| 200 bool parseColorParameters(CSSParserValue*, int* colorValues, bool parseAlpha
); | 200 bool parseColorParameters(CSSParserValue*, int* colorValues, bool parseAlpha
); |
| 201 bool parseHSLParameters(CSSParserValue*, double* colorValues, bool parseAlph
a); | 201 bool parseHSLParameters(CSSParserValue*, double* colorValues, bool parseAlph
a); |
| 202 PassRefPtr<CSSPrimitiveValue> parseColor(CSSParserValue* = 0); | 202 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(CSSParserValue* = 0); |
| 203 bool parseColorFromValue(CSSParserValue*, RGBA32&); | 203 bool parseColorFromValue(CSSParserValue*, RGBA32&); |
| 204 void parseSelector(const String&, CSSSelectorList&); | 204 void parseSelector(const String&, CSSSelectorList&); |
| 205 | 205 |
| 206 template<typename StringType> | 206 template<typename StringType> |
| 207 static bool fastParseColor(RGBA32&, const StringType&, bool strict); | 207 static bool fastParseColor(RGBA32&, const StringType&, bool strict); |
| 208 | 208 |
| 209 bool parseLineHeight(bool important); | 209 bool parseLineHeight(bool important); |
| 210 bool parseFontSize(bool important); | 210 bool parseFontSize(bool important); |
| 211 bool parseFontVariant(bool important); | 211 bool parseFontVariant(bool important); |
| 212 bool parseFontWeight(bool important); | 212 bool parseFontWeight(bool important); |
| 213 bool parseFontFaceSrc(); | 213 bool parseFontFaceSrc(); |
| 214 bool parseFontFaceUnicodeRange(); | 214 bool parseFontFaceUnicodeRange(); |
| 215 | 215 |
| 216 bool parseSVGValue(CSSPropertyID propId, bool important); | 216 bool parseSVGValue(CSSPropertyID propId, bool important); |
| 217 PassRefPtr<CSSValue> parseSVGPaint(); | 217 PassRefPtr<CSSValue> parseSVGPaint(); |
| 218 PassRefPtr<CSSValue> parseSVGColor(); | 218 PassRefPtr<CSSValue> parseSVGColor(); |
| 219 PassRefPtr<CSSValue> parseSVGStrokeDasharray(); | 219 PassRefPtr<CSSValue> parseSVGStrokeDasharray(); |
| 220 | 220 |
| 221 PassRefPtr<CSSValue> parsePaintOrder() const; | 221 PassRefPtr<CSSValue> parsePaintOrder() const; |
| 222 | 222 |
| 223 // CSS3 Parsing Routines (for properties specific to CSS3) | 223 // CSS3 Parsing Routines (for properties specific to CSS3) |
| 224 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro
pertyID); | 224 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro
pertyID); |
| 225 bool parseBorderImageShorthand(CSSPropertyID, bool important); | 225 bool parseBorderImageShorthand(CSSPropertyID, bool important); |
| 226 PassRefPtr<CSSValue> parseBorderImage(CSSPropertyID); | 226 PassRefPtr<CSSValue> parseBorderImage(CSSPropertyID); |
| 227 bool parseBorderImageRepeat(RefPtr<CSSValue>&); | 227 bool parseBorderImageRepeat(RefPtr<CSSValue>&); |
| 228 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS
liceValue>&); | 228 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS
liceValue>&); |
| 229 bool parseBorderImageWidth(RefPtr<CSSPrimitiveValue>&); | 229 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSPrimitiveValue>&); |
| 230 bool parseBorderImageOutset(RefPtr<CSSPrimitiveValue>&); | 230 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSPrimitiveValue>&); |
| 231 bool parseBorderRadius(CSSPropertyID, bool important); | 231 bool parseBorderRadius(CSSPropertyID, bool important); |
| 232 | 232 |
| 233 bool parseAspectRatio(bool important); | 233 bool parseAspectRatio(bool important); |
| 234 | 234 |
| 235 bool parseReflect(CSSPropertyID, bool important); | 235 bool parseReflect(CSSPropertyID, bool important); |
| 236 | 236 |
| 237 bool parseFlex(CSSParserValueList* args, bool important); | 237 bool parseFlex(CSSParserValueList* args, bool important); |
| 238 | 238 |
| 239 bool parseObjectPosition(bool important); | 239 bool parseObjectPosition(bool important); |
| 240 | 240 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 void resumeErrorLogging() { m_ignoreErrors = false; } | 406 void resumeErrorLogging() { m_ignoreErrors = false; } |
| 407 void setLocationLabel(const CSSParserLocation& location) { m_locationLabel =
location; } | 407 void setLocationLabel(const CSSParserLocation& location) { m_locationLabel =
location; } |
| 408 const CSSParserLocation& lastLocationLabel() const { return m_locationLabel;
} | 408 const CSSParserLocation& lastLocationLabel() const { return m_locationLabel;
} |
| 409 | 409 |
| 410 void tokenToLowerCase(const CSSParserString& token); | 410 void tokenToLowerCase(const CSSParserString& token); |
| 411 | 411 |
| 412 void markViewportRuleBodyStart() { m_inViewport = true; } | 412 void markViewportRuleBodyStart() { m_inViewport = true; } |
| 413 void markViewportRuleBodyEnd() { m_inViewport = false; } | 413 void markViewportRuleBodyEnd() { m_inViewport = false; } |
| 414 StyleRuleBase* createViewportRule(); | 414 StyleRuleBase* createViewportRule(); |
| 415 | 415 |
| 416 PassRefPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSParserValue*); | 416 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar
serValue*); |
| 417 PassRefPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSParserValue*); | 417 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars
erValue*); |
| 418 PassRefPtr<CSSPrimitiveValue> createPrimitiveVariableReferenceValue(CSSParse
rValue*); | 418 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveVariableReferenceVa
lue(CSSParserValue*); |
| 419 | 419 |
| 420 CSSParserLocation currentLocation() { return m_tokenizer.currentLocation();
} | 420 CSSParserLocation currentLocation() { return m_tokenizer.currentLocation();
} |
| 421 | 421 |
| 422 private: | 422 private: |
| 423 enum PropertyType { | 423 enum PropertyType { |
| 424 PropertyExplicit, | 424 PropertyExplicit, |
| 425 PropertyImplicit | 425 PropertyImplicit |
| 426 }; | 426 }; |
| 427 | 427 |
| 428 class ImplicitScope { | 428 class ImplicitScope { |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 bool isLoggingErrors(); | 584 bool isLoggingErrors(); |
| 585 void logError(const String& message, const CSSParserLocation&); | 585 void logError(const String& message, const CSSParserLocation&); |
| 586 | 586 |
| 587 bool validCalculationUnit(CSSParserValue*, Units, ReleaseParsedCalcValueCond
ition releaseCalc = DoNotReleaseParsedCalcValue); | 587 bool validCalculationUnit(CSSParserValue*, Units, ReleaseParsedCalcValueCond
ition releaseCalc = DoNotReleaseParsedCalcValue); |
| 588 | 588 |
| 589 bool shouldAcceptUnitLessValues(CSSParserValue*, Units, CSSParserMode); | 589 bool shouldAcceptUnitLessValues(CSSParserValue*, Units, CSSParserMode); |
| 590 | 590 |
| 591 inline bool validUnit(CSSParserValue* value, Units unitflags, ReleaseParsedC
alcValueCondition releaseCalc = DoNotReleaseParsedCalcValue) { return validUnit(
value, unitflags, m_context.mode(), releaseCalc); } | 591 inline bool validUnit(CSSParserValue* value, Units unitflags, ReleaseParsedC
alcValueCondition releaseCalc = DoNotReleaseParsedCalcValue) { return validUnit(
value, unitflags, m_context.mode(), releaseCalc); } |
| 592 bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValue
Condition releaseCalc = DoNotReleaseParsedCalcValue); | 592 bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValue
Condition releaseCalc = DoNotReleaseParsedCalcValue); |
| 593 | 593 |
| 594 bool parseBorderImageQuad(Units, RefPtr<CSSPrimitiveValue>&); | 594 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSPrimitiveValue>&); |
| 595 int colorIntFromValue(CSSParserValue*); | 595 int colorIntFromValue(CSSParserValue*); |
| 596 double parsedDouble(CSSParserValue*, ReleaseParsedCalcValueCondition release
Calc = DoNotReleaseParsedCalcValue); | 596 double parsedDouble(CSSParserValue*, ReleaseParsedCalcValueCondition release
Calc = DoNotReleaseParsedCalcValue); |
| 597 bool isCalculation(CSSParserValue*); | 597 bool isCalculation(CSSParserValue*); |
| 598 | 598 |
| 599 CSSTokenizer m_tokenizer; | 599 CSSTokenizer m_tokenizer; |
| 600 | 600 |
| 601 friend class TransformOperationInfo; | 601 friend class TransformOperationInfo; |
| 602 friend class FilterOperationInfo; | 602 friend class FilterOperationInfo; |
| 603 }; | 603 }; |
| 604 | 604 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 627 bool isValidNthToken(const CSSParserString&); | 627 bool isValidNthToken(const CSSParserString&); |
| 628 | 628 |
| 629 inline int cssyylex(void* yylval, BisonCSSParser* parser) | 629 inline int cssyylex(void* yylval, BisonCSSParser* parser) |
| 630 { | 630 { |
| 631 return parser->m_tokenizer.lex(yylval); | 631 return parser->m_tokenizer.lex(yylval); |
| 632 } | 632 } |
| 633 | 633 |
| 634 } // namespace WebCore | 634 } // namespace WebCore |
| 635 | 635 |
| 636 #endif // BisonCSSParser_h | 636 #endif // BisonCSSParser_h |
| OLD | NEW |