| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "core/svg/SVGExternalResourcesRequired.h" | 27 #include "core/svg/SVGExternalResourcesRequired.h" |
| 28 #include "core/svg/SVGGeometryElement.h" | 28 #include "core/svg/SVGGeometryElement.h" |
| 29 | 29 |
| 30 namespace WebCore { | 30 namespace WebCore { |
| 31 | 31 |
| 32 class SVGLineElement FINAL : public SVGGeometryElement, | 32 class SVGLineElement FINAL : public SVGGeometryElement, |
| 33 public SVGExternalResourcesRequired { | 33 public SVGExternalResourcesRequired { |
| 34 public: | 34 public: |
| 35 static PassRefPtr<SVGLineElement> create(Document&); | 35 static PassRefPtr<SVGLineElement> create(Document&); |
| 36 | 36 |
| 37 SVGAnimatedLength* x1() const { return m_x1.get(); } |
| 38 SVGAnimatedLength* y1() const { return m_y1.get(); } |
| 39 SVGAnimatedLength* x2() const { return m_x2.get(); } |
| 40 SVGAnimatedLength* y2() const { return m_y2.get(); } |
| 41 |
| 37 private: | 42 private: |
| 38 explicit SVGLineElement(Document&); | 43 explicit SVGLineElement(Document&); |
| 39 | 44 |
| 40 virtual bool isValid() const { return SVGTests::isValid(); } | 45 virtual bool isValid() const { return SVGTests::isValid(); } |
| 41 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } | 46 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } |
| 42 | 47 |
| 43 bool isSupportedAttribute(const QualifiedName&); | 48 bool isSupportedAttribute(const QualifiedName&); |
| 44 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 49 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 45 virtual void svgAttributeChanged(const QualifiedName&); | 50 virtual void svgAttributeChanged(const QualifiedName&); |
| 46 | 51 |
| 47 virtual bool supportsMarkers() const { return true; } | 52 virtual bool supportsMarkers() const { return true; } |
| 48 | 53 |
| 49 virtual bool selfHasRelativeLengths() const; | 54 virtual bool selfHasRelativeLengths() const; |
| 50 | 55 |
| 56 RefPtr<SVGAnimatedLength> m_x1; |
| 57 RefPtr<SVGAnimatedLength> m_y1; |
| 58 RefPtr<SVGAnimatedLength> m_x2; |
| 59 RefPtr<SVGAnimatedLength> m_y2; |
| 51 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLineElement) | 60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLineElement) |
| 52 DECLARE_ANIMATED_LENGTH(X1, x1) | |
| 53 DECLARE_ANIMATED_LENGTH(Y1, y1) | |
| 54 DECLARE_ANIMATED_LENGTH(X2, x2) | |
| 55 DECLARE_ANIMATED_LENGTH(Y2, y2) | |
| 56 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 61 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
| 57 END_DECLARE_ANIMATED_PROPERTIES | 62 END_DECLARE_ANIMATED_PROPERTIES |
| 58 }; | 63 }; |
| 59 | 64 |
| 60 DEFINE_NODE_TYPE_CASTS(SVGLineElement, hasTagName(SVGNames::lineTag)); | 65 DEFINE_NODE_TYPE_CASTS(SVGLineElement, hasTagName(SVGNames::lineTag)); |
| 61 | 66 |
| 62 } // namespace WebCore | 67 } // namespace WebCore |
| 63 | 68 |
| 64 #endif | 69 #endif |
| OLD | NEW |