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

Side by Side 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, 4 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) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005 Rob Buis <buis@kde.org> 3 2004, 2005 Rob Buis <buis@kde.org>
4 Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 5
6 Based on khtml code by: 6 Based on khtml code by:
7 Copyright (C) 2000-2003 Lars Knoll (knoll@kde.org) 7 Copyright (C) 2000-2003 Lars Knoll (knoll@kde.org)
8 (C) 2000 Antti Koivisto (koivisto@kde.org) 8 (C) 2000 Antti Koivisto (koivisto@kde.org)
9 (C) 2000-2003 Dirk Mueller (mueller@kde.org) 9 (C) 2000-2003 Dirk Mueller (mueller@kde.org)
10 (C) 2002-2003 Apple Computer, Inc. 10 (C) 2002-2003 Apple Computer, Inc.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 MT_ALPHA 107 MT_ALPHA
108 }; 108 };
109 109
110 enum EPaintOrderType { 110 enum EPaintOrderType {
111 PT_NONE = 0, 111 PT_NONE = 0,
112 PT_FILL = 1, 112 PT_FILL = 1,
113 PT_STROKE = 2, 113 PT_STROKE = 2,
114 PT_MARKERS = 3 114 PT_MARKERS = 3
115 }; 115 };
116 116
117 const int kPaintOrderBitwidth = 2; 117 // 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.
118 typedef unsigned EPaintOrder; 118 enum EPaintOrder {
119 const unsigned PO_NORMAL = PT_FILL | PT_STROKE << 2 | PT_MARKERS << 4; 119 PaintOrderNormal = 0,
120 PaintOrderFill = 1,
121 PaintOrderFillMarkers = 2,
122 PaintOrderStroke = 3,
123 PaintOrderStrokeMarkers = 4,
124 PaintOrderMarkers = 5,
125 PaintOrderMarkersStroke = 6
126 };
120 127
121 // Inherited/Non-Inherited Style Datastructures 128 // Inherited/Non-Inherited Style Datastructures
122 class StyleFillData : public RefCounted<StyleFillData> { 129 class StyleFillData : public RefCounted<StyleFillData> {
123 public: 130 public:
124 static PassRefPtr<StyleFillData> create() { return adoptRef(new StyleFillDat a); } 131 static PassRefPtr<StyleFillData> create() { return adoptRef(new StyleFillDat a); }
125 PassRefPtr<StyleFillData> copy() const { return adoptRef(new StyleFillData(* this)); } 132 PassRefPtr<StyleFillData> copy() const { return adoptRef(new StyleFillData(* this)); }
126 133
127 bool operator==(const StyleFillData&) const; 134 bool operator==(const StyleFillData&) const;
128 bool operator!=(const StyleFillData& other) const 135 bool operator!=(const StyleFillData& other) const
129 { 136 {
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 Length rx; 304 Length rx;
298 Length ry; 305 Length ry;
299 private: 306 private:
300 StyleLayoutData(); 307 StyleLayoutData();
301 StyleLayoutData(const StyleLayoutData&); 308 StyleLayoutData(const StyleLayoutData&);
302 }; 309 };
303 310
304 } // namespace blink 311 } // namespace blink
305 312
306 #endif // SVGComputedStyleDefs_h 313 #endif // SVGComputedStyleDefs_h
OLDNEW
« 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