| 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 24 matching lines...) Expand all Loading... |
| 35 : SVGGraphicsElement(SVGNames::imageTag, document) | 35 : SVGGraphicsElement(SVGNames::imageTag, document) |
| 36 , SVGURIReference(this) | 36 , SVGURIReference(this) |
| 37 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) | 37 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) |
| 38 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight), AllowNegativeLengths)) | 38 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight), AllowNegativeLengths)) |
| 39 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth), ForbidNegativeLengths)) | 39 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth), ForbidNegativeLengths)) |
| 40 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight), ForbidNegativeLengths)) | 40 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight), ForbidNegativeLengths)) |
| 41 , m_preserveAspectRatio(SVGAnimatedPreserveAspectRatio::create(this, SVGName
s::preserveAspectRatioAttr, SVGPreserveAspectRatio::create())) | 41 , m_preserveAspectRatio(SVGAnimatedPreserveAspectRatio::create(this, SVGName
s::preserveAspectRatioAttr, SVGPreserveAspectRatio::create())) |
| 42 , m_imageLoader(SVGImageLoader::create(this)) | 42 , m_imageLoader(SVGImageLoader::create(this)) |
| 43 , m_needsLoaderURIUpdate(true) | 43 , m_needsLoaderURIUpdate(true) |
| 44 { | 44 { |
| 45 ScriptWrappable::init(this); | |
| 46 | |
| 47 addToPropertyMap(m_x); | 45 addToPropertyMap(m_x); |
| 48 addToPropertyMap(m_y); | 46 addToPropertyMap(m_y); |
| 49 addToPropertyMap(m_width); | 47 addToPropertyMap(m_width); |
| 50 addToPropertyMap(m_height); | 48 addToPropertyMap(m_height); |
| 51 addToPropertyMap(m_preserveAspectRatio); | 49 addToPropertyMap(m_preserveAspectRatio); |
| 52 } | 50 } |
| 53 | 51 |
| 54 DEFINE_NODE_FACTORY(SVGImageElement) | 52 DEFINE_NODE_FACTORY(SVGImageElement) |
| 55 | 53 |
| 56 void SVGImageElement::trace(Visitor* visitor) | 54 void SVGImageElement::trace(Visitor* visitor) |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 { | 203 { |
| 206 return AtomicString(hrefString()); | 204 return AtomicString(hrefString()); |
| 207 } | 205 } |
| 208 | 206 |
| 209 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) | 207 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) |
| 210 { | 208 { |
| 211 imageLoader().elementDidMoveToNewDocument(); | 209 imageLoader().elementDidMoveToNewDocument(); |
| 212 SVGGraphicsElement::didMoveToNewDocument(oldDocument); | 210 SVGGraphicsElement::didMoveToNewDocument(oldDocument); |
| 213 } | 211 } |
| 214 | 212 |
| 215 } | 213 } // namespace blink |
| OLD | NEW |