diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/svg/SVGCursorElement.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/svg/SVGCursorElement.h | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/chromium/third_party/WebKit/Source/core/svg/SVGCursorElement.h b/chromium/third_party/WebKit/Source/core/svg/SVGCursorElement.h index 57011308521..d1a290f3793 100644 --- a/chromium/third_party/WebKit/Source/core/svg/SVGCursorElement.h +++ b/chromium/third_party/WebKit/Source/core/svg/SVGCursorElement.h @@ -21,11 +21,11 @@ #ifndef SVGCursorElement_h #define SVGCursorElement_h +#include "core/SVGNames.h" #include "core/svg/SVGAnimatedBoolean.h" #include "core/svg/SVGAnimatedLength.h" #include "core/svg/SVGAnimatedString.h" #include "core/svg/SVGElement.h" -#include "core/svg/SVGExternalResourcesRequired.h" #include "core/svg/SVGTests.h" #include "core/svg/SVGURIReference.h" @@ -33,41 +33,38 @@ namespace WebCore { class SVGCursorElement FINAL : public SVGElement, public SVGTests, - public SVGExternalResourcesRequired, public SVGURIReference { public: - static PassRefPtr<SVGCursorElement> create(Document&); + DECLARE_NODE_FACTORY(SVGCursorElement); virtual ~SVGCursorElement(); void addClient(SVGElement*); +#if !ENABLE(OILPAN) void removeClient(SVGElement*); +#endif void removeReferencedElement(SVGElement*); + SVGAnimatedLength* x() const { return m_x.get(); } + SVGAnimatedLength* y() const { return m_y.get(); } + + virtual void trace(Visitor*) OVERRIDE; + private: explicit SVGCursorElement(Document&); - virtual bool isValid() const { return SVGTests::isValid(); } + virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); } bool isSupportedAttribute(const QualifiedName&); virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; - virtual void svgAttributeChanged(const QualifiedName&); + virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } - BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCursorElement) - DECLARE_ANIMATED_LENGTH(X, x) - DECLARE_ANIMATED_LENGTH(Y, y) - DECLARE_ANIMATED_STRING(Href, href) - DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired) - END_DECLARE_ANIMATED_PROPERTIES - - // SVGTests - virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFeatures(this); } - virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequiredExtensions(this); } - virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLanguage(this); } + RefPtr<SVGAnimatedLength> m_x; + RefPtr<SVGAnimatedLength> m_y; - HashSet<SVGElement*> m_clients; + WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> > m_clients; }; } // namespace WebCore |