summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGFEImageElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGFEImageElement.h')
-rw-r--r--Source/WebCore/svg/SVGFEImageElement.h34
1 files changed, 16 insertions, 18 deletions
diff --git a/Source/WebCore/svg/SVGFEImageElement.h b/Source/WebCore/svg/SVGFEImageElement.h
index ab8c4c7fd..b3cf2c940 100644
--- a/Source/WebCore/svg/SVGFEImageElement.h
+++ b/Source/WebCore/svg/SVGFEImageElement.h
@@ -18,10 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGFEImageElement_h
-#define SVGFEImageElement_h
+#pragma once
-#if ENABLE(SVG) && ENABLE(FILTERS)
#include "CachedImageClient.h"
#include "CachedResourceHandle.h"
#include "ImageBuffer.h"
@@ -39,38 +37,38 @@ class SVGFEImageElement final : public SVGFilterPrimitiveStandardAttributes,
public SVGExternalResourcesRequired,
public CachedImageClient {
public:
- static PassRefPtr<SVGFEImageElement> create(const QualifiedName&, Document&);
+ static Ref<SVGFEImageElement> create(const QualifiedName&, Document&);
virtual ~SVGFEImageElement();
+ bool hasSingleSecurityOrigin() const;
+
private:
SVGFEImageElement(const QualifiedName&, Document&);
- bool isSupportedAttribute(const QualifiedName&);
- virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
- virtual void svgAttributeChanged(const QualifiedName&) override;
- virtual void notifyFinished(CachedResource*) override;
+ void finishedInsertingSubtree() override;
+
+ void parseAttribute(const QualifiedName&, const AtomicString&) override;
+ void svgAttributeChanged(const QualifiedName&) override;
+ void notifyFinished(CachedResource&) final;
- virtual void addSubresourceAttributeURLs(ListHashSet<URL>&) const override;
- virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) override;
+ void addSubresourceAttributeURLs(ListHashSet<URL>&) const override;
+ RefPtr<FilterEffect> build(SVGFilterBuilder*, Filter&) override;
void clearResourceReferences();
void requestImageResource();
- virtual void buildPendingResource() override;
- virtual InsertionNotificationRequest insertedInto(ContainerNode&) override;
- virtual void removedFrom(ContainerNode&) override;
+ void buildPendingResource() override;
+ InsertionNotificationRequest insertedInto(ContainerNode&) override;
+ void removedFrom(ContainerNode&) override;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEImageElement)
DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspectRatio)
- DECLARE_ANIMATED_STRING(Href, href)
- DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
+ DECLARE_ANIMATED_STRING_OVERRIDE(Href, href)
+ DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
CachedResourceHandle<CachedImage> m_cachedImage;
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif