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

Side by Side 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 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 BR_AUTO, 86 BR_AUTO,
87 BR_DYNAMIC, 87 BR_DYNAMIC,
88 BR_STATIC 88 BR_STATIC
89 }; 89 };
90 90
91 enum EMaskType { 91 enum EMaskType {
92 MT_LUMINANCE, 92 MT_LUMINANCE,
93 MT_ALPHA 93 MT_ALPHA
94 }; 94 };
95 95
96 enum EPaintOrderType {
97 PT_NONE = 0,
98 PT_FILL = 1,
99 PT_STROKE = 2,
100 PT_MARKERS = 3
101 };
102
103 const int kPaintOrderBitwidth = 2;
104 typedef unsigned EPaintOrder;
105 const unsigned PO_NORMAL = PT_FILL | PT_STROKE << 2 | PT_MARKERS << 4;
106
96 class CSSValue; 107 class CSSValue;
97 class CSSValueList; 108 class CSSValueList;
98 class SVGPaint; 109 class SVGPaint;
99 110
100 // Inherited/Non-Inherited Style Datastructures 111 // Inherited/Non-Inherited Style Datastructures
101 class StyleFillData : public RefCounted<StyleFillData> { 112 class StyleFillData : public RefCounted<StyleFillData> {
102 public: 113 public:
103 static PassRefPtr<StyleFillData> create() { return adoptRef(new StyleFil lData); } 114 static PassRefPtr<StyleFillData> create() { return adoptRef(new StyleFil lData); }
104 PassRefPtr<StyleFillData> copy() const { return adoptRef(new StyleFillDa ta(*this)); } 115 PassRefPtr<StyleFillData> copy() const { return adoptRef(new StyleFillDa ta(*this)); }
105 116
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 String markerEnd; 280 String markerEnd;
270 281
271 private: 282 private:
272 StyleInheritedResourceData(); 283 StyleInheritedResourceData();
273 StyleInheritedResourceData(const StyleInheritedResourceData&); 284 StyleInheritedResourceData(const StyleInheritedResourceData&);
274 }; 285 };
275 286
276 } // namespace WebCore 287 } // namespace WebCore
277 288
278 #endif // SVGRenderStyleDefs_h 289 #endif // SVGRenderStyleDefs_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698