| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #if ENABLE(SVG) | 24 #if ENABLE(SVG) |
| 25 #include "SVGFEImageElement.h" | 25 #include "SVGFEImageElement.h" |
| 26 | 26 |
| 27 #include "Attr.h" | 27 #include "Attr.h" |
| 28 #include "CachedImage.h" | 28 #include "CachedImage.h" |
| 29 #include "CachedResourceLoader.h" | 29 #include "CachedResourceLoader.h" |
| 30 #include "CachedResourceRequest.h" | 30 #include "CachedResourceRequest.h" |
| 31 #include "Document.h" | 31 #include "Document.h" |
| 32 #include "RenderObject.h" | 32 #include "RenderObject.h" |
| 33 #include "RenderSVGResource.h" | |
| 34 #include "SVGElementInstance.h" | 33 #include "SVGElementInstance.h" |
| 35 #include "SVGNames.h" | 34 #include "SVGNames.h" |
| 36 #include "SVGPreserveAspectRatio.h" | 35 #include "SVGPreserveAspectRatio.h" |
| 37 #include "core/platform/graphics/ColorSpace.h" | 36 #include "core/platform/graphics/ColorSpace.h" |
| 38 #include "core/platform/graphics/Image.h" | 37 #include "core/platform/graphics/Image.h" |
| 38 #include "core/rendering/svg/RenderSVGResource.h" |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 // Animated property definitions | 42 // Animated property definitions |
| 43 DEFINE_ANIMATED_PRESERVEASPECTRATIO(SVGFEImageElement, SVGNames::preserveAspectR
atioAttr, PreserveAspectRatio, preserveAspectRatio) | 43 DEFINE_ANIMATED_PRESERVEASPECTRATIO(SVGFEImageElement, SVGNames::preserveAspectR
atioAttr, PreserveAspectRatio, preserveAspectRatio) |
| 44 DEFINE_ANIMATED_STRING(SVGFEImageElement, XLinkNames::hrefAttr, Href, href) | 44 DEFINE_ANIMATED_STRING(SVGFEImageElement, XLinkNames::hrefAttr, Href, href) |
| 45 DEFINE_ANIMATED_BOOLEAN(SVGFEImageElement, SVGNames::externalResourcesRequiredAt
tr, ExternalResourcesRequired, externalResourcesRequired) | 45 DEFINE_ANIMATED_BOOLEAN(SVGFEImageElement, SVGNames::externalResourcesRequiredAt
tr, ExternalResourcesRequired, externalResourcesRequired) |
| 46 | 46 |
| 47 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEImageElement) | 47 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEImageElement) |
| 48 REGISTER_LOCAL_ANIMATED_PROPERTY(preserveAspectRatio) | 48 REGISTER_LOCAL_ANIMATED_PROPERTY(preserveAspectRatio) |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
st | 213 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
st |
| 214 { | 214 { |
| 215 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); | 215 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); |
| 216 | 216 |
| 217 addSubresourceURL(urls, document()->completeURL(href())); | 217 addSubresourceURL(urls, document()->completeURL(href())); |
| 218 } | 218 } |
| 219 | 219 |
| 220 } | 220 } |
| 221 | 221 |
| 222 #endif // ENABLE(SVG) | 222 #endif // ENABLE(SVG) |
| OLD | NEW |