| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 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) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #include "core/svg/SVGAnimatedBoolean.h" | 25 #include "core/svg/SVGAnimatedBoolean.h" |
| 26 #include "core/svg/SVGGraphicsElement.h" | 26 #include "core/svg/SVGGraphicsElement.h" |
| 27 #include "core/svg/SVGURIReference.h" | 27 #include "core/svg/SVGURIReference.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class SVGAElement final : public SVGGraphicsElement, | 31 class SVGAElement final : public SVGGraphicsElement, |
| 32 public SVGURIReference { | 32 public SVGURIReference { |
| 33 DEFINE_WRAPPERTYPEINFO(); | 33 DEFINE_WRAPPERTYPEINFO(); |
| 34 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGAElement); |
| 34 public: | 35 public: |
| 35 DECLARE_NODE_FACTORY(SVGAElement); | 36 DECLARE_NODE_FACTORY(SVGAElement); |
| 36 SVGAnimatedString* svgTarget() { return m_svgTarget.get(); } | 37 SVGAnimatedString* svgTarget() { return m_svgTarget.get(); } |
| 37 | 38 |
| 39 virtual void trace(Visitor*) override; |
| 40 |
| 38 private: | 41 private: |
| 39 explicit SVGAElement(Document&); | 42 explicit SVGAElement(Document&); |
| 40 | 43 |
| 41 virtual String title() const override; | 44 virtual String title() const override; |
| 42 | 45 |
| 43 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 46 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
| 44 virtual void svgAttributeChanged(const QualifiedName&) override; | 47 virtual void svgAttributeChanged(const QualifiedName&) override; |
| 45 | 48 |
| 46 virtual RenderObject* createRenderer(RenderStyle*) override; | 49 virtual RenderObject* createRenderer(RenderStyle*) override; |
| 47 | 50 |
| 48 virtual void defaultEventHandler(Event*) override; | 51 virtual void defaultEventHandler(Event*) override; |
| 49 | 52 |
| 50 virtual bool isLiveLink() const override { return isLink(); } | 53 virtual bool isLiveLink() const override { return isLink(); } |
| 51 | 54 |
| 52 virtual bool supportsFocus() const override; | 55 virtual bool supportsFocus() const override; |
| 53 virtual bool shouldHaveFocusAppearance() const override final; | 56 virtual bool shouldHaveFocusAppearance() const override final; |
| 54 virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusType) overr
ide; | 57 virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusType) overr
ide; |
| 55 virtual bool isMouseFocusable() const override; | 58 virtual bool isMouseFocusable() const override; |
| 56 virtual bool isKeyboardFocusable() const override; | 59 virtual bool isKeyboardFocusable() const override; |
| 57 virtual bool isURLAttribute(const Attribute&) const override; | 60 virtual bool isURLAttribute(const Attribute&) const override; |
| 58 virtual bool canStartSelection() const override; | 61 virtual bool canStartSelection() const override; |
| 59 virtual short tabIndex() const override; | 62 virtual short tabIndex() const override; |
| 60 | 63 |
| 61 virtual bool willRespondToMouseClickEvents() override; | 64 virtual bool willRespondToMouseClickEvents() override; |
| 62 | 65 |
| 63 RefPtr<SVGAnimatedString> m_svgTarget; | 66 RefPtrWillBeMember<SVGAnimatedString> m_svgTarget; |
| 64 bool m_wasFocusedByMouse; | 67 bool m_wasFocusedByMouse; |
| 65 }; | 68 }; |
| 66 | 69 |
| 67 } // namespace blink | 70 } // namespace blink |
| 68 | 71 |
| 69 #endif // SVGAElement_h | 72 #endif // SVGAElement_h |
| OLD | NEW |