OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org> | 4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.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 30 matching lines...) Expand all Loading... |
41 DEFINE_ANIMATED_STRING(SVGFEImageElement, XLinkNames::hrefAttr, Href, href) | 41 DEFINE_ANIMATED_STRING(SVGFEImageElement, XLinkNames::hrefAttr, Href, href) |
42 DEFINE_ANIMATED_BOOLEAN(SVGFEImageElement, SVGNames::externalResourcesRequiredAt
tr, ExternalResourcesRequired, externalResourcesRequired) | 42 DEFINE_ANIMATED_BOOLEAN(SVGFEImageElement, SVGNames::externalResourcesRequiredAt
tr, ExternalResourcesRequired, externalResourcesRequired) |
43 | 43 |
44 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEImageElement) | 44 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEImageElement) |
45 REGISTER_LOCAL_ANIMATED_PROPERTY(preserveAspectRatio) | 45 REGISTER_LOCAL_ANIMATED_PROPERTY(preserveAspectRatio) |
46 REGISTER_LOCAL_ANIMATED_PROPERTY(href) | 46 REGISTER_LOCAL_ANIMATED_PROPERTY(href) |
47 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | 47 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) |
48 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | 48 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) |
49 END_REGISTER_ANIMATED_PROPERTIES | 49 END_REGISTER_ANIMATED_PROPERTIES |
50 | 50 |
51 inline SVGFEImageElement::SVGFEImageElement(const QualifiedName& tagName, Docume
nt* document) | 51 inline SVGFEImageElement::SVGFEImageElement(const QualifiedName& tagName, Docume
nt& document) |
52 : SVGFilterPrimitiveStandardAttributes(tagName, document) | 52 : SVGFilterPrimitiveStandardAttributes(tagName, document) |
53 { | 53 { |
54 ASSERT(hasTagName(SVGNames::feImageTag)); | 54 ASSERT(hasTagName(SVGNames::feImageTag)); |
55 ScriptWrappable::init(this); | 55 ScriptWrappable::init(this); |
56 registerAnimatedPropertiesForSVGFEImageElement(); | 56 registerAnimatedPropertiesForSVGFEImageElement(); |
57 } | 57 } |
58 | 58 |
59 PassRefPtr<SVGFEImageElement> SVGFEImageElement::create(const QualifiedName& tag
Name, Document* document) | 59 PassRefPtr<SVGFEImageElement> SVGFEImageElement::create(const QualifiedName& tag
Name, Document& document) |
60 { | 60 { |
61 return adoptRef(new SVGFEImageElement(tagName, document)); | 61 return adoptRef(new SVGFEImageElement(tagName, document)); |
62 } | 62 } |
63 | 63 |
64 SVGFEImageElement::~SVGFEImageElement() | 64 SVGFEImageElement::~SVGFEImageElement() |
65 { | 65 { |
66 clearResourceReferences(); | 66 clearResourceReferences(); |
67 } | 67 } |
68 | 68 |
69 void SVGFEImageElement::clearResourceReferences() | 69 void SVGFEImageElement::clearResourceReferences() |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 } | 204 } |
205 | 205 |
206 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
st | 206 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
st |
207 { | 207 { |
208 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); | 208 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); |
209 | 209 |
210 addSubresourceURL(urls, document().completeURL(hrefCurrentValue())); | 210 addSubresourceURL(urls, document().completeURL(hrefCurrentValue())); |
211 } | 211 } |
212 | 212 |
213 } | 213 } |
OLD | NEW |