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

Unified Diff: Source/core/style/SVGComputedStyleDefs.h

Issue 1252933003: Shrink SVG paint-order to take less bits (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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/style/SVGComputedStyleDefs.h
diff --git a/Source/core/style/SVGComputedStyleDefs.h b/Source/core/style/SVGComputedStyleDefs.h
index 8d5540f097073feb7a8b31d5079e514b377f7866..318120a8fc75f52974556883082e40b19fa9358f 100644
--- a/Source/core/style/SVGComputedStyleDefs.h
+++ b/Source/core/style/SVGComputedStyleDefs.h
@@ -114,9 +114,16 @@ enum EPaintOrderType {
PT_MARKERS = 3
};
-const int kPaintOrderBitwidth = 2;
-typedef unsigned EPaintOrder;
-const unsigned PO_NORMAL = PT_FILL | PT_STROKE << 2 | PT_MARKERS << 4;
+// These are all minimized combinations of paint-order.
pdr. 2015/07/29 05:20:50 Using minimized names was a bit confusing to me at
Shanmuga Pandi 2015/07/29 06:55:04 Ok. I will change.
+enum EPaintOrder {
+ PaintOrderNormal = 0,
+ PaintOrderFill = 1,
+ PaintOrderFillMarkers = 2,
+ PaintOrderStroke = 3,
+ PaintOrderStrokeMarkers = 4,
+ PaintOrderMarkers = 5,
+ PaintOrderMarkersStroke = 6
+};
// Inherited/Non-Inherited Style Datastructures
class StyleFillData : public RefCounted<StyleFillData> {
« Source/core/style/SVGComputedStyle.cpp ('K') | « Source/core/style/SVGComputedStyle.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698