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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include "CSSPropertyNames.h" | 26 #include "CSSPropertyNames.h" |
27 #include "XLinkNames.h" | 27 #include "XLinkNames.h" |
28 #include "core/rendering/RenderImageResource.h" | 28 #include "core/rendering/RenderImageResource.h" |
29 #include "core/rendering/svg/RenderSVGImage.h" | 29 #include "core/rendering/svg/RenderSVGImage.h" |
30 #include "core/rendering/svg/RenderSVGResource.h" | 30 #include "core/rendering/svg/RenderSVGResource.h" |
31 #include "core/svg/SVGElementInstance.h" | 31 #include "core/svg/SVGElementInstance.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 // Animated property definitions | |
36 | |
37 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGImageElement) | |
38 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) | |
39 END_REGISTER_ANIMATED_PROPERTIES | |
40 | |
41 inline SVGImageElement::SVGImageElement(Document& document) | 35 inline SVGImageElement::SVGImageElement(Document& document) |
42 : SVGGraphicsElement(SVGNames::imageTag, document) | 36 : SVGGraphicsElement(SVGNames::imageTag, document) |
43 , SVGURIReference(this) | 37 , SVGURIReference(this) |
44 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth))) | 38 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth))) |
45 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight))) | 39 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight))) |
46 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth))) | 40 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth))) |
47 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight))) | 41 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight))) |
48 , m_preserveAspectRatio(SVGAnimatedPreserveAspectRatio::create(this, SVGName
s::preserveAspectRatioAttr, SVGPreserveAspectRatio::create())) | 42 , m_preserveAspectRatio(SVGAnimatedPreserveAspectRatio::create(this, SVGName
s::preserveAspectRatioAttr, SVGPreserveAspectRatio::create())) |
49 , m_imageLoader(this) | 43 , m_imageLoader(this) |
50 , m_needsLoaderURIUpdate(true) | 44 , m_needsLoaderURIUpdate(true) |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 return AtomicString(hrefString()); | 218 return AtomicString(hrefString()); |
225 } | 219 } |
226 | 220 |
227 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) | 221 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) |
228 { | 222 { |
229 m_imageLoader.elementDidMoveToNewDocument(); | 223 m_imageLoader.elementDidMoveToNewDocument(); |
230 SVGGraphicsElement::didMoveToNewDocument(oldDocument); | 224 SVGGraphicsElement::didMoveToNewDocument(oldDocument); |
231 } | 225 } |
232 | 226 |
233 } | 227 } |
OLD | NEW |