OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann |
3 * <zimmermann@kde.org> | 3 * <zimmermann@kde.org> |
4 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 m_width( | 43 m_width( |
44 SVGAnimatedLength::create(this, | 44 SVGAnimatedLength::create(this, |
45 SVGNames::widthAttr, | 45 SVGNames::widthAttr, |
46 SVGLength::create(SVGLengthMode::Width))), | 46 SVGLength::create(SVGLengthMode::Width))), |
47 m_height( | 47 m_height( |
48 SVGAnimatedLength::create(this, | 48 SVGAnimatedLength::create(this, |
49 SVGNames::heightAttr, | 49 SVGNames::heightAttr, |
50 SVGLength::create(SVGLengthMode::Height))), | 50 SVGLength::create(SVGLengthMode::Height))), |
51 m_patternTransform( | 51 m_patternTransform( |
52 SVGAnimatedTransformList::create(this, | 52 SVGAnimatedTransformList::create(this, |
53 SVGNames::patternTransformAttr, | 53 SVGNames::patternTransformAttr)), |
54 SVGTransformList::create())), | |
55 m_patternUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( | 54 m_patternUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( |
56 this, | 55 this, |
57 SVGNames::patternUnitsAttr, | 56 SVGNames::patternUnitsAttr, |
58 SVGUnitTypes::kSvgUnitTypeObjectboundingbox)), | 57 SVGUnitTypes::kSvgUnitTypeObjectboundingbox)), |
59 m_patternContentUnits( | 58 m_patternContentUnits( |
60 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( | 59 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( |
61 this, | 60 this, |
62 SVGNames::patternContentUnitsAttr, | 61 SVGNames::patternContentUnitsAttr, |
63 SVGUnitTypes::kSvgUnitTypeUserspaceonuse)) { | 62 SVGUnitTypes::kSvgUnitTypeUserspaceonuse)) { |
64 addToPropertyMap(m_x); | 63 addToPropertyMap(m_x); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 } | 204 } |
206 | 205 |
207 bool SVGPatternElement::selfHasRelativeLengths() const { | 206 bool SVGPatternElement::selfHasRelativeLengths() const { |
208 return m_x->currentValue()->isRelative() || | 207 return m_x->currentValue()->isRelative() || |
209 m_y->currentValue()->isRelative() || | 208 m_y->currentValue()->isRelative() || |
210 m_width->currentValue()->isRelative() || | 209 m_width->currentValue()->isRelative() || |
211 m_height->currentValue()->isRelative(); | 210 m_height->currentValue()->isRelative(); |
212 } | 211 } |
213 | 212 |
214 } // namespace blink | 213 } // namespace blink |
OLD | NEW |