| 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" | 28 #include "config.h" |
| 29 | 29 |
| 30 #include "core/layout/style/SVGComputedStyle.h" | 30 #include "core/style/SVGComputedStyle.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 SVGComputedStyle::SVGComputedStyle() | 34 SVGComputedStyle::SVGComputedStyle() |
| 35 { | 35 { |
| 36 static SVGComputedStyle* initialStyle = new SVGComputedStyle(CreateInitial); | 36 static SVGComputedStyle* initialStyle = new SVGComputedStyle(CreateInitial); |
| 37 | 37 |
| 38 fill = initialStyle->fill; | 38 fill = initialStyle->fill; |
| 39 stroke = initialStyle->stroke; | 39 stroke = initialStyle->stroke; |
| 40 stops = initialStyle->stops; | 40 stops = initialStyle->stops; |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 } | 249 } |
| 250 | 250 |
| 251 EPaintOrderType SVGComputedStyle::paintOrderType(unsigned index) const | 251 EPaintOrderType SVGComputedStyle::paintOrderType(unsigned index) const |
| 252 { | 252 { |
| 253 ASSERT(index < ((1 << kPaintOrderBitwidth)-1)); | 253 ASSERT(index < ((1 << kPaintOrderBitwidth)-1)); |
| 254 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint
OrderBitwidth) - 1); | 254 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint
OrderBitwidth) - 1); |
| 255 return (EPaintOrderType)pt; | 255 return (EPaintOrderType)pt; |
| 256 } | 256 } |
| 257 | 257 |
| 258 } | 258 } |
| OLD | NEW |