Chromium Code Reviews| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 bool parseFontVariant(bool important); | 189 bool parseFontVariant(bool important); |
| 190 bool parseFontWeight(bool important); | 190 bool parseFontWeight(bool important); |
| 191 bool parseFontFaceSrc(); | 191 bool parseFontFaceSrc(); |
| 192 bool parseFontFaceUnicodeRange(); | 192 bool parseFontFaceUnicodeRange(); |
| 193 | 193 |
| 194 #if ENABLE(SVG) | 194 #if ENABLE(SVG) |
| 195 bool parseSVGValue(CSSPropertyID propId, bool important); | 195 bool parseSVGValue(CSSPropertyID propId, bool important); |
| 196 PassRefPtr<CSSValue> parseSVGPaint(); | 196 PassRefPtr<CSSValue> parseSVGPaint(); |
| 197 PassRefPtr<CSSValue> parseSVGColor(); | 197 PassRefPtr<CSSValue> parseSVGColor(); |
| 198 PassRefPtr<CSSValue> parseSVGStrokeDasharray(); | 198 PassRefPtr<CSSValue> parseSVGStrokeDasharray(); |
| 199 | |
| 200 enum PaintOrderState { | |
| 201 NORMAL, | |
| 202 FILL, | |
| 203 STROKE, | |
| 204 MARKERS, | |
| 205 // permutations | |
| 206 FILL_STROKE, | |
| 207 FILL_MARKERS, | |
| 208 STROKE_FILL, | |
| 209 STROKE_MARKERS, | |
| 210 MARKERS_FILL, | |
| 211 MARKERS_STROKE, | |
| 212 //FILL_STROKE_MARKERS = NORMAL | |
| 213 FILL_MARKERS_STROKE, | |
| 214 STROKE_MARKERS_FILL, | |
| 215 STROKE_FILL_MARKERS, | |
| 216 MARKERS_FILL_STROKE, | |
| 217 MARKERS_STROKE_FILL | |
| 218 }; | |
| 219 | |
| 220 PassRefPtr<CSSValue> parsePaintOrder(); | |
| 221 bool parsePaintOrderParameter(CSSValueList* parsedValues, CSSParserValue* va lue, PaintOrderState& paint_order); | |
|
pdr.
2013/05/03 17:58:29
Can you make these two functions const?
PassRefPt
| |
| 199 #endif | 222 #endif |
| 200 | 223 |
| 201 // CSS3 Parsing Routines (for properties specific to CSS3) | 224 // CSS3 Parsing Routines (for properties specific to CSS3) |
| 202 PassRefPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPropertyID); | 225 PassRefPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPropertyID); |
| 203 bool parseBorderImage(CSSPropertyID, RefPtr<CSSValue>&, bool important = fal se); | 226 bool parseBorderImage(CSSPropertyID, RefPtr<CSSValue>&, bool important = fal se); |
| 204 bool parseBorderImageRepeat(RefPtr<CSSValue>&); | 227 bool parseBorderImageRepeat(RefPtr<CSSValue>&); |
| 205 bool parseBorderImageSlice(CSSPropertyID, RefPtr<CSSBorderImageSliceValue>&) ; | 228 bool parseBorderImageSlice(CSSPropertyID, RefPtr<CSSBorderImageSliceValue>&) ; |
| 206 bool parseBorderImageWidth(RefPtr<CSSPrimitiveValue>&); | 229 bool parseBorderImageWidth(RefPtr<CSSPrimitiveValue>&); |
| 207 bool parseBorderImageOutset(RefPtr<CSSPrimitiveValue>&); | 230 bool parseBorderImageOutset(RefPtr<CSSPrimitiveValue>&); |
| 208 bool parseBorderRadius(CSSPropertyID, bool important); | 231 bool parseBorderRadius(CSSPropertyID, bool important); |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 697 } | 720 } |
| 698 | 721 |
| 699 inline int cssyylex(void* yylval, CSSParser* parser) | 722 inline int cssyylex(void* yylval, CSSParser* parser) |
| 700 { | 723 { |
| 701 return parser->lex(yylval); | 724 return parser->lex(yylval); |
| 702 } | 725 } |
| 703 | 726 |
| 704 } // namespace WebCore | 727 } // namespace WebCore |
| 705 | 728 |
| 706 #endif // CSSParser_h | 729 #endif // CSSParser_h |
| OLD | NEW |