OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 bool setMarkerEnd(LayoutSVGResourceMarker*); | 122 bool setMarkerEnd(LayoutSVGResourceMarker*); |
123 bool setMasker(LayoutSVGResourceMasker*); | 123 bool setMasker(LayoutSVGResourceMasker*); |
124 bool setFill(LayoutSVGResourcePaintServer*); | 124 bool setFill(LayoutSVGResourcePaintServer*); |
125 bool setStroke(LayoutSVGResourcePaintServer*); | 125 bool setStroke(LayoutSVGResourcePaintServer*); |
126 bool setLinkedResource(LayoutSVGResourceContainer*); | 126 bool setLinkedResource(LayoutSVGResourceContainer*); |
127 | 127 |
128 // From SVG 1.1 2nd Edition | 128 // From SVG 1.1 2nd Edition |
129 // clipper: 'container elements' and 'graphics elements' | 129 // clipper: 'container elements' and 'graphics elements' |
130 // filter: 'container elements' and 'graphics elements' | 130 // filter: 'container elements' and 'graphics elements' |
131 // masker: 'container elements' and 'graphics elements' | 131 // masker: 'container elements' and 'graphics elements' |
132 // -> a, circle, defs, ellipse, glyph, g, image, line, marker, mask, missing-g
lyph, path, pattern, polygon, polyline, rect, svg, switch, symbol, text, use | 132 // -> a, circle, defs, ellipse, glyph, g, image, line, marker, mask, |
| 133 // missing-glyph, path, pattern, polygon, polyline, rect, svg, switch, symbol, |
| 134 // text, use |
133 struct ClipperFilterMaskerData { | 135 struct ClipperFilterMaskerData { |
134 USING_FAST_MALLOC(ClipperFilterMaskerData); | 136 USING_FAST_MALLOC(ClipperFilterMaskerData); |
135 | 137 |
136 public: | 138 public: |
137 ClipperFilterMaskerData() | 139 ClipperFilterMaskerData() |
138 : clipper(nullptr), filter(nullptr), masker(nullptr) {} | 140 : clipper(nullptr), filter(nullptr), masker(nullptr) {} |
139 | 141 |
140 static std::unique_ptr<ClipperFilterMaskerData> create() { | 142 static std::unique_ptr<ClipperFilterMaskerData> create() { |
141 return wrapUnique(new ClipperFilterMaskerData); | 143 return wrapUnique(new ClipperFilterMaskerData); |
142 } | 144 } |
(...skipping 17 matching lines...) Expand all Loading... |
160 } | 162 } |
161 | 163 |
162 LayoutSVGResourceMarker* markerStart; | 164 LayoutSVGResourceMarker* markerStart; |
163 LayoutSVGResourceMarker* markerMid; | 165 LayoutSVGResourceMarker* markerMid; |
164 LayoutSVGResourceMarker* markerEnd; | 166 LayoutSVGResourceMarker* markerEnd; |
165 }; | 167 }; |
166 | 168 |
167 // From SVG 1.1 2nd Edition | 169 // From SVG 1.1 2nd Edition |
168 // fill: 'shapes' and 'text content elements' | 170 // fill: 'shapes' and 'text content elements' |
169 // stroke: 'shapes' and 'text content elements' | 171 // stroke: 'shapes' and 'text content elements' |
170 // -> circle, ellipse, line, path, polygon, polyline, rect, text, textPath, ts
pan | 172 // -> circle, ellipse, line, path, polygon, polyline, rect, text, textPath, |
| 173 // tspan |
171 struct FillStrokeData { | 174 struct FillStrokeData { |
172 USING_FAST_MALLOC(FillStrokeData); | 175 USING_FAST_MALLOC(FillStrokeData); |
173 | 176 |
174 public: | 177 public: |
175 FillStrokeData() : fill(nullptr), stroke(nullptr) {} | 178 FillStrokeData() : fill(nullptr), stroke(nullptr) {} |
176 | 179 |
177 static std::unique_ptr<FillStrokeData> create() { | 180 static std::unique_ptr<FillStrokeData> create() { |
178 return wrapUnique(new FillStrokeData); | 181 return wrapUnique(new FillStrokeData); |
179 } | 182 } |
180 | 183 |
181 LayoutSVGResourcePaintServer* fill; | 184 LayoutSVGResourcePaintServer* fill; |
182 LayoutSVGResourcePaintServer* stroke; | 185 LayoutSVGResourcePaintServer* stroke; |
183 }; | 186 }; |
184 | 187 |
185 std::unique_ptr<ClipperFilterMaskerData> m_clipperFilterMaskerData; | 188 std::unique_ptr<ClipperFilterMaskerData> m_clipperFilterMaskerData; |
186 std::unique_ptr<MarkerData> m_markerData; | 189 std::unique_ptr<MarkerData> m_markerData; |
187 std::unique_ptr<FillStrokeData> m_fillStrokeData; | 190 std::unique_ptr<FillStrokeData> m_fillStrokeData; |
188 LayoutSVGResourceContainer* m_linkedResource; | 191 LayoutSVGResourceContainer* m_linkedResource; |
189 }; | 192 }; |
190 | 193 |
191 } // namespace blink | 194 } // namespace blink |
192 | 195 |
193 #endif | 196 #endif |
OLD | NEW |