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. |
11 | 11 |
12 This library is free software; you can redistribute it and/or | 12 This library is free software; you can redistribute it and/or |
13 modify it under the terms of the GNU Library General Public | 13 modify it under the terms of the GNU Library General Public |
14 License as published by the Free Software Foundation; either | 14 License as published by the Free Software Foundation; either |
15 version 2 of the License, or (at your option) any later version. | 15 version 2 of the License, or (at your option) any later version. |
16 | 16 |
17 This library is distributed in the hope that it will be useful, | 17 This library is distributed in the hope that it will be useful, |
18 but WITHOUT ANY WARRANTY; without even the implied warranty of | 18 but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
20 Library General Public License for more details. | 20 Library General Public License for more details. |
21 | 21 |
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" | |
29 | |
30 #include "core/style/SVGComputedStyle.h" | 28 #include "core/style/SVGComputedStyle.h" |
31 | 29 |
32 namespace blink { | 30 namespace blink { |
33 | 31 |
34 static const int kPaintOrderBitwidth = 2; | 32 static const int kPaintOrderBitwidth = 2; |
35 | 33 |
36 SVGComputedStyle::SVGComputedStyle() | 34 SVGComputedStyle::SVGComputedStyle() |
37 { | 35 { |
38 static SVGComputedStyle* initialStyle = new SVGComputedStyle(CreateInitial); | 36 static SVGComputedStyle* initialStyle = new SVGComputedStyle(CreateInitial); |
39 | 37 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 case PaintOrderMarkersStrokeFill: | 275 case PaintOrderMarkersStrokeFill: |
278 pt = paintOrderSequence(PT_MARKERS, PT_STROKE, PT_FILL); | 276 pt = paintOrderSequence(PT_MARKERS, PT_STROKE, PT_FILL); |
279 break; | 277 break; |
280 } | 278 } |
281 | 279 |
282 pt = (pt >> (kPaintOrderBitwidth*index)) & ((1u << kPaintOrderBitwidth) - 1)
; | 280 pt = (pt >> (kPaintOrderBitwidth*index)) & ((1u << kPaintOrderBitwidth) - 1)
; |
283 return (EPaintOrderType)pt; | 281 return (EPaintOrderType)pt; |
284 } | 282 } |
285 | 283 |
286 } | 284 } |
OLD | NEW |