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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/css/CSSParser.h
diff --git a/Source/core/css/CSSParser.h b/Source/core/css/CSSParser.h
index 10e18eae854462769dc96e0062999f37b5dff36d..cedd884e7421e05b9d269c6634623a64315c46cc 100644
--- a/Source/core/css/CSSParser.h
+++ b/Source/core/css/CSSParser.h
@@ -196,6 +196,29 @@ public:
PassRefPtr<CSSValue> parseSVGPaint();
PassRefPtr<CSSValue> parseSVGColor();
PassRefPtr<CSSValue> parseSVGStrokeDasharray();
+
+ enum PaintOrderState {
+ NORMAL,
+ FILL,
+ STROKE,
+ MARKERS,
+ // permutations
+ FILL_STROKE,
+ FILL_MARKERS,
+ STROKE_FILL,
+ STROKE_MARKERS,
+ MARKERS_FILL,
+ MARKERS_STROKE,
+ //FILL_STROKE_MARKERS = NORMAL
+ FILL_MARKERS_STROKE,
+ STROKE_MARKERS_FILL,
+ STROKE_FILL_MARKERS,
+ MARKERS_FILL_STROKE,
+ MARKERS_STROKE_FILL
+ };
+
+ PassRefPtr<CSSValue> parsePaintOrder();
+ bool parsePaintOrderParameter(CSSValueList* parsedValues, CSSParserValue* value, PaintOrderState& paint_order);
pdr. 2013/05/03 17:58:29 Can you make these two functions const? PassRefPt
#endif
// CSS3 Parsing Routines (for properties specific to CSS3)

Powered by Google App Engine
This is Rietveld 408576698