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

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: Align with review comments 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
« no previous file with comments | « Source/core/style/SVGComputedStyle.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 enum EPaintOrder {
118 typedef unsigned EPaintOrder; 118 PaintOrderNormal = 0,
119 const unsigned PO_NORMAL = PT_FILL | PT_STROKE << 2 | PT_MARKERS << 4; 119 PaintOrderFillStrokeMarkers = 1,
120 PaintOrderFillMarkersStroke = 2,
121 PaintOrderStrokeFillMarkers = 3,
122 PaintOrderStrokeMarkersFill = 4,
123 PaintOrderMarkersFillStroke = 5,
124 PaintOrderMarkersStrokeFill = 6
125 };
120 126
121 // Inherited/Non-Inherited Style Datastructures 127 // Inherited/Non-Inherited Style Datastructures
122 class StyleFillData : public RefCounted<StyleFillData> { 128 class StyleFillData : public RefCounted<StyleFillData> {
123 public: 129 public:
124 static PassRefPtr<StyleFillData> create() { return adoptRef(new StyleFillDat a); } 130 static PassRefPtr<StyleFillData> create() { return adoptRef(new StyleFillDat a); }
125 PassRefPtr<StyleFillData> copy() const { return adoptRef(new StyleFillData(* this)); } 131 PassRefPtr<StyleFillData> copy() const { return adoptRef(new StyleFillData(* this)); }
126 132
127 bool operator==(const StyleFillData&) const; 133 bool operator==(const StyleFillData&) const;
128 bool operator!=(const StyleFillData& other) const 134 bool operator!=(const StyleFillData& other) const
129 { 135 {
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 Length rx; 303 Length rx;
298 Length ry; 304 Length ry;
299 private: 305 private:
300 StyleLayoutData(); 306 StyleLayoutData();
301 StyleLayoutData(const StyleLayoutData&); 307 StyleLayoutData(const StyleLayoutData&);
302 }; 308 };
303 309
304 } // namespace blink 310 } // namespace blink
305 311
306 #endif // SVGComputedStyleDefs_h 312 #endif // SVGComputedStyleDefs_h
OLDNEW
« 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