OLD | NEW |
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, 2010 Rob Buis <buis@kde.org> | 3 2004, 2005, 2010 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) 1999 Antti Koivisto (koivisto@kde.org) | 7 Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
8 Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) | 8 Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) |
9 Copyright (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 9 Copyright (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
10 Copyright (C) 2002 Apple Computer, Inc. | 10 Copyright (C) 2002 Apple Computer, Inc. |
(...skipping 11 matching lines...) Expand all Loading... |
22 You should have received a copy of the GNU Library General Public License | 22 You should have received a copy of the GNU Library General Public License |
23 along with this library; see the file COPYING.LIB. If not, write to | 23 along with this library; see the file COPYING.LIB. If not, write to |
24 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 24 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
25 Boston, MA 02110-1301, USA. | 25 Boston, MA 02110-1301, USA. |
26 */ | 26 */ |
27 | 27 |
28 #include "config.h" | 28 #include "config.h" |
29 | 29 |
30 #include "core/rendering/style/SVGRenderStyle.h" | 30 #include "core/rendering/style/SVGRenderStyle.h" |
31 | 31 |
32 | |
33 using namespace std; | |
34 | |
35 namespace WebCore { | 32 namespace WebCore { |
36 | 33 |
37 SVGRenderStyle::SVGRenderStyle() | 34 SVGRenderStyle::SVGRenderStyle() |
38 { | 35 { |
39 static SVGRenderStyle* defaultStyle = new SVGRenderStyle(CreateDefault); | 36 static SVGRenderStyle* defaultStyle = new SVGRenderStyle(CreateDefault); |
40 | 37 |
41 fill = defaultStyle->fill; | 38 fill = defaultStyle->fill; |
42 stroke = defaultStyle->stroke; | 39 stroke = defaultStyle->stroke; |
43 stops = defaultStyle->stops; | 40 stops = defaultStyle->stops; |
44 misc = defaultStyle->misc; | 41 misc = defaultStyle->misc; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 } | 226 } |
230 | 227 |
231 EPaintOrderType SVGRenderStyle::paintOrderType(unsigned index) const | 228 EPaintOrderType SVGRenderStyle::paintOrderType(unsigned index) const |
232 { | 229 { |
233 ASSERT(index < ((1 << kPaintOrderBitwidth)-1)); | 230 ASSERT(index < ((1 << kPaintOrderBitwidth)-1)); |
234 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint
OrderBitwidth) - 1); | 231 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint
OrderBitwidth) - 1); |
235 return (EPaintOrderType)pt; | 232 return (EPaintOrderType)pt; |
236 } | 233 } |
237 | 234 |
238 } | 235 } |
OLD | NEW |