| 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 22 matching lines...) Expand all Loading... |
| 33 static PassRefPtr<SVGLineElement> create(Document&); | 33 static PassRefPtr<SVGLineElement> create(Document&); |
| 34 | 34 |
| 35 SVGAnimatedLength* x1() const { return m_x1.get(); } | 35 SVGAnimatedLength* x1() const { return m_x1.get(); } |
| 36 SVGAnimatedLength* y1() const { return m_y1.get(); } | 36 SVGAnimatedLength* y1() const { return m_y1.get(); } |
| 37 SVGAnimatedLength* x2() const { return m_x2.get(); } | 37 SVGAnimatedLength* x2() const { return m_x2.get(); } |
| 38 SVGAnimatedLength* y2() const { return m_y2.get(); } | 38 SVGAnimatedLength* y2() const { return m_y2.get(); } |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 explicit SVGLineElement(Document&); | 41 explicit SVGLineElement(Document&); |
| 42 | 42 |
| 43 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); } | |
| 44 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } | 43 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } |
| 45 | 44 |
| 46 bool isSupportedAttribute(const QualifiedName&); | 45 bool isSupportedAttribute(const QualifiedName&); |
| 47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 46 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 48 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 47 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
| 49 | 48 |
| 50 virtual bool supportsMarkers() const OVERRIDE { return true; } | 49 virtual bool supportsMarkers() const OVERRIDE { return true; } |
| 51 | 50 |
| 52 virtual bool selfHasRelativeLengths() const OVERRIDE; | 51 virtual bool selfHasRelativeLengths() const OVERRIDE; |
| 53 | 52 |
| 54 RefPtr<SVGAnimatedLength> m_x1; | 53 RefPtr<SVGAnimatedLength> m_x1; |
| 55 RefPtr<SVGAnimatedLength> m_y1; | 54 RefPtr<SVGAnimatedLength> m_y1; |
| 56 RefPtr<SVGAnimatedLength> m_x2; | 55 RefPtr<SVGAnimatedLength> m_x2; |
| 57 RefPtr<SVGAnimatedLength> m_y2; | 56 RefPtr<SVGAnimatedLength> m_y2; |
| 58 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLineElement) | 57 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLineElement) |
| 59 END_DECLARE_ANIMATED_PROPERTIES | 58 END_DECLARE_ANIMATED_PROPERTIES |
| 60 }; | 59 }; |
| 61 | 60 |
| 62 DEFINE_NODE_TYPE_CASTS(SVGLineElement, hasTagName(SVGNames::lineTag)); | 61 DEFINE_NODE_TYPE_CASTS(SVGLineElement, hasTagName(SVGNames::lineTag)); |
| 63 | 62 |
| 64 } // namespace WebCore | 63 } // namespace WebCore |
| 65 | 64 |
| 66 #endif | 65 #endif |
| OLD | NEW |