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

Side by Side Diff: Source/core/css/CSSParser.h

Issue 14907011: Support 'paint-order' from SVG2. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698