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

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: Align with review comments 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
« no previous file with comments | « Source/core/style/SVGComputedStyle.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/SVGComputedStyleDefs.h
diff --git a/Source/core/style/SVGComputedStyleDefs.h b/Source/core/style/SVGComputedStyleDefs.h
index 8d5540f097073feb7a8b31d5079e514b377f7866..7176a3e0d0af5ac1f8efbff7d921d56ba8b4f3a2 100644
--- a/Source/core/style/SVGComputedStyleDefs.h
+++ b/Source/core/style/SVGComputedStyleDefs.h
@@ -114,9 +114,15 @@ enum EPaintOrderType {
PT_MARKERS = 3
};
-const int kPaintOrderBitwidth = 2;
-typedef unsigned EPaintOrder;
-const unsigned PO_NORMAL = PT_FILL | PT_STROKE << 2 | PT_MARKERS << 4;
+enum EPaintOrder {
+ PaintOrderNormal = 0,
+ PaintOrderFillStrokeMarkers = 1,
+ PaintOrderFillMarkersStroke = 2,
+ PaintOrderStrokeFillMarkers = 3,
+ PaintOrderStrokeMarkersFill = 4,
+ PaintOrderMarkersFillStroke = 5,
+ PaintOrderMarkersStrokeFill = 6
+};
// Inherited/Non-Inherited Style Datastructures
class StyleFillData : public RefCounted<StyleFillData> {
« no previous file with comments | « Source/core/style/SVGComputedStyle.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698