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 #include "core/css/CSSValueList.h" | |
33 | 32 |
34 using namespace std; | 33 using namespace std; |
35 | 34 |
36 namespace WebCore { | 35 namespace WebCore { |
37 | 36 |
38 SVGRenderStyle::SVGRenderStyle() | 37 SVGRenderStyle::SVGRenderStyle() |
39 { | 38 { |
40 static SVGRenderStyle* defaultStyle = new SVGRenderStyle(CreateDefault); | 39 static SVGRenderStyle* defaultStyle = new SVGRenderStyle(CreateDefault); |
41 | 40 |
42 fill = defaultStyle->fill; | 41 fill = defaultStyle->fill; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 } | 222 } |
224 | 223 |
225 EPaintOrderType SVGRenderStyle::paintOrderType(unsigned index) const | 224 EPaintOrderType SVGRenderStyle::paintOrderType(unsigned index) const |
226 { | 225 { |
227 ASSERT(index < ((1 << kPaintOrderBitwidth)-1)); | 226 ASSERT(index < ((1 << kPaintOrderBitwidth)-1)); |
228 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint
OrderBitwidth) - 1); | 227 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint
OrderBitwidth) - 1); |
229 return (EPaintOrderType)pt; | 228 return (EPaintOrderType)pt; |
230 } | 229 } |
231 | 230 |
232 } | 231 } |
OLD | NEW |