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

Unified Diff: Source/core/rendering/style/SVGRenderStyleDefs.h

Issue 14907011: Support 'paint-order' from SVG2. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix review issues and add paint-order for text too Created 7 years, 5 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/rendering/style/SVGRenderStyleDefs.h
diff --git a/Source/core/rendering/style/SVGRenderStyleDefs.h b/Source/core/rendering/style/SVGRenderStyleDefs.h
index 4f9d706d3347a1d3f714e77c7f5b9aa772574ea8..92b1b3d5c5fb45fa17b20c32c57788e0485cab02 100644
--- a/Source/core/rendering/style/SVGRenderStyleDefs.h
+++ b/Source/core/rendering/style/SVGRenderStyleDefs.h
@@ -93,6 +93,17 @@ namespace WebCore {
MT_ALPHA
};
+ enum EPaintOrderType {
+ PT_NONE = 0,
+ PT_FILL = 1,
+ PT_STROKE = 2,
+ PT_MARKERS = 3
+ };
+
+ const int kPaintOrderBitwidth = 2;
+ typedef unsigned EPaintOrder;
+ const unsigned PO_NORMAL = PT_FILL | PT_STROKE << 2 | PT_MARKERS << 4;
+
class CSSValue;
class CSSValueList;
class SVGPaint;

Powered by Google App Engine
This is Rietveld 408576698