OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 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 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 { | 52 { |
53 ScriptWrappable::init(this); | 53 ScriptWrappable::init(this); |
54 | 54 |
55 addToPropertyMap(m_x); | 55 addToPropertyMap(m_x); |
56 addToPropertyMap(m_y); | 56 addToPropertyMap(m_y); |
57 addToPropertyMap(m_width); | 57 addToPropertyMap(m_width); |
58 addToPropertyMap(m_height); | 58 addToPropertyMap(m_height); |
59 addToPropertyMap(m_patternTransform); | 59 addToPropertyMap(m_patternTransform); |
60 addToPropertyMap(m_patternUnits); | 60 addToPropertyMap(m_patternUnits); |
61 addToPropertyMap(m_patternContentUnits); | 61 addToPropertyMap(m_patternContentUnits); |
62 registerAnimatedPropertiesForSVGPatternElement(); | |
63 } | 62 } |
64 | 63 |
65 PassRefPtr<SVGPatternElement> SVGPatternElement::create(Document& document) | 64 PassRefPtr<SVGPatternElement> SVGPatternElement::create(Document& document) |
66 { | 65 { |
67 return adoptRef(new SVGPatternElement(document)); | 66 return adoptRef(new SVGPatternElement(document)); |
68 } | 67 } |
69 | 68 |
70 bool SVGPatternElement::isSupportedAttribute(const QualifiedName& attrName) | 69 bool SVGPatternElement::isSupportedAttribute(const QualifiedName& attrName) |
71 { | 70 { |
72 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 71 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 220 |
222 bool SVGPatternElement::selfHasRelativeLengths() const | 221 bool SVGPatternElement::selfHasRelativeLengths() const |
223 { | 222 { |
224 return m_x->currentValue()->isRelative() | 223 return m_x->currentValue()->isRelative() |
225 || m_y->currentValue()->isRelative() | 224 || m_y->currentValue()->isRelative() |
226 || m_width->currentValue()->isRelative() | 225 || m_width->currentValue()->isRelative() |
227 || m_height->currentValue()->isRelative(); | 226 || m_height->currentValue()->isRelative(); |
228 } | 227 } |
229 | 228 |
230 } | 229 } |
OLD | NEW |