OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 4 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 inline SVGImageElement::SVGImageElement(const QualifiedName& tagName, Document*
document) | 60 inline SVGImageElement::SVGImageElement(const QualifiedName& tagName, Document*
document) |
61 : SVGStyledTransformableElement(tagName, document) | 61 : SVGStyledTransformableElement(tagName, document) |
62 , m_x(LengthModeWidth) | 62 , m_x(LengthModeWidth) |
63 , m_y(LengthModeHeight) | 63 , m_y(LengthModeHeight) |
64 , m_width(LengthModeWidth) | 64 , m_width(LengthModeWidth) |
65 , m_height(LengthModeHeight) | 65 , m_height(LengthModeHeight) |
66 , m_imageLoader(this) | 66 , m_imageLoader(this) |
67 { | 67 { |
68 ASSERT(hasTagName(SVGNames::imageTag)); | 68 ASSERT(hasTagName(SVGNames::imageTag)); |
| 69 ScriptWrappable::init(this); |
69 registerAnimatedPropertiesForSVGImageElement(); | 70 registerAnimatedPropertiesForSVGImageElement(); |
70 } | 71 } |
71 | 72 |
72 PassRefPtr<SVGImageElement> SVGImageElement::create(const QualifiedName& tagName
, Document* document) | 73 PassRefPtr<SVGImageElement> SVGImageElement::create(const QualifiedName& tagName
, Document* document) |
73 { | 74 { |
74 return adoptRef(new SVGImageElement(tagName, document)); | 75 return adoptRef(new SVGImageElement(tagName, document)); |
75 } | 76 } |
76 | 77 |
77 bool SVGImageElement::isSupportedAttribute(const QualifiedName& attrName) | 78 bool SVGImageElement::isSupportedAttribute(const QualifiedName& attrName) |
78 { | 79 { |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 237 |
237 void SVGImageElement::didMoveToNewDocument(Document* oldDocument) | 238 void SVGImageElement::didMoveToNewDocument(Document* oldDocument) |
238 { | 239 { |
239 m_imageLoader.elementDidMoveToNewDocument(); | 240 m_imageLoader.elementDidMoveToNewDocument(); |
240 SVGStyledTransformableElement::didMoveToNewDocument(oldDocument); | 241 SVGStyledTransformableElement::didMoveToNewDocument(oldDocument); |
241 } | 242 } |
242 | 243 |
243 } | 244 } |
244 | 245 |
245 #endif // ENABLE(SVG) | 246 #endif // ENABLE(SVG) |
OLD | NEW |