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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 PassRefPtrWillBeRawPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); | 186 PassRefPtrWillBeRawPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); |
187 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShapeAndOrBox(); | 187 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShapeAndOrBox(); |
188 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShape(); | 188 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShape(); |
189 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); | 189 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); |
190 | 190 |
191 PassRefPtrWillBeRawPtr<CSSBasicShapeCircleValue> parseBasicShapeCircle(CSSPa
rserValueList* args); | 191 PassRefPtrWillBeRawPtr<CSSBasicShapeCircleValue> parseBasicShapeCircle(CSSPa
rserValueList* args); |
192 PassRefPtrWillBeRawPtr<CSSBasicShapeEllipseValue> parseBasicShapeEllipse(CSS
ParserValueList* args); | 192 PassRefPtrWillBeRawPtr<CSSBasicShapeEllipseValue> parseBasicShapeEllipse(CSS
ParserValueList* args); |
193 PassRefPtrWillBeRawPtr<CSSBasicShapePolygonValue> parseBasicShapePolygon(CSS
ParserValueList* args); | 193 PassRefPtrWillBeRawPtr<CSSBasicShapePolygonValue> parseBasicShapePolygon(CSS
ParserValueList* args); |
194 PassRefPtrWillBeRawPtr<CSSBasicShapeInsetValue> parseBasicShapeInset(CSSPars
erValueList* args); | 194 PassRefPtrWillBeRawPtr<CSSBasicShapeInsetValue> parseBasicShapeInset(CSSPars
erValueList* args); |
195 | 195 |
196 bool parseFont(bool important); | 196 bool consumeFont(bool important); |
197 bool parseSystemFont(bool important); | 197 bool consumeSystemFont(bool important); |
198 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily(); | |
199 | 198 |
200 PassRefPtrWillBeRawPtr<CSSValue> parseCounter(int defaultValue); | 199 PassRefPtrWillBeRawPtr<CSSValue> parseCounter(int defaultValue); |
201 PassRefPtrWillBeRawPtr<CSSValue> parseCounterContent(CSSParserValueList* arg
s, bool counters); | 200 PassRefPtrWillBeRawPtr<CSSValue> parseCounterContent(CSSParserValueList* arg
s, bool counters); |
202 | 201 |
203 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars
eAlpha); | 202 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars
eAlpha); |
204 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par
seAlpha); | 203 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par
seAlpha); |
205 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(const CSSParserValue*,
bool acceptQuirkyColors = false); | 204 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(const CSSParserValue*,
bool acceptQuirkyColors = false); |
206 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo
lors = false); | 205 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo
lors = false); |
207 | 206 |
208 bool acceptQuirkyColors(CSSPropertyID) const; | 207 bool acceptQuirkyColors(CSSPropertyID) const; |
209 | 208 |
210 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseLineHeight(); | |
211 bool parseFontSize(bool important); | |
212 bool parseFontWeight(bool important); | |
213 PassRefPtrWillBeRawPtr<CSSValueList> consumeFontFaceSrc(); | 209 PassRefPtrWillBeRawPtr<CSSValueList> consumeFontFaceSrc(); |
214 | 210 |
215 bool parseSVGValue(CSSPropertyID propId, bool important); | 211 bool parseSVGValue(CSSPropertyID propId, bool important); |
216 PassRefPtrWillBeRawPtr<CSSValue> parseSVGStrokeDasharray(); | 212 PassRefPtrWillBeRawPtr<CSSValue> parseSVGStrokeDasharray(); |
217 | 213 |
218 PassRefPtrWillBeRawPtr<CSSValue> parsePaintOrder() const; | 214 PassRefPtrWillBeRawPtr<CSSValue> parsePaintOrder() const; |
219 | 215 |
220 // CSS3 Parsing Routines (for properties specific to CSS3) | 216 // CSS3 Parsing Routines (for properties specific to CSS3) |
221 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro
pertyID); | 217 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro
pertyID); |
222 PassRefPtrWillBeRawPtr<CSSShadowValue> parseSingleShadow(CSSParserValueList*
, bool allowInset, bool allowSpread); | 218 PassRefPtrWillBeRawPtr<CSSShadowValue> parseSingleShadow(CSSParserValueList*
, bool allowInset, bool allowSpread); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPosition(); | 361 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPosition(); |
366 | 362 |
367 private: | 363 private: |
368 // Inputs: | 364 // Inputs: |
369 CSSParserValueList* m_valueList; | 365 CSSParserValueList* m_valueList; |
370 CSSParserTokenRange m_range; | 366 CSSParserTokenRange m_range; |
371 const CSSParserContext& m_context; | 367 const CSSParserContext& m_context; |
372 | 368 |
373 // Outputs: | 369 // Outputs: |
374 WillBeHeapVector<CSSProperty, 256>& m_parsedProperties; | 370 WillBeHeapVector<CSSProperty, 256>& m_parsedProperties; |
375 StyleRule::Type m_ruleType; | |
376 | 371 |
377 // Locals during parsing: | 372 // Locals during parsing: |
378 int m_inParseShorthand; | 373 int m_inParseShorthand; |
379 CSSPropertyID m_currentShorthand; | 374 CSSPropertyID m_currentShorthand; |
380 bool m_implicitShorthand; | 375 bool m_implicitShorthand; |
381 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; | 376 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; |
382 }; | 377 }; |
383 | 378 |
384 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); | 379 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); |
385 CSSValueID cssValueKeywordID(const CSSParserString&); | 380 CSSValueID cssValueKeywordID(const CSSParserString&); |
386 | 381 |
387 } // namespace blink | 382 } // namespace blink |
388 | 383 |
389 #endif // CSSPropertyParser_h | 384 #endif // CSSPropertyParser_h |
OLD | NEW |