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, 2006, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 void selectSubString(unsigned charnum, unsigned nchars, ExceptionCode&); | 90 void selectSubString(unsigned charnum, unsigned nchars, ExceptionCode&); |
91 | 91 |
92 static SVGTextContentElement* elementFromRenderer(RenderObject*); | 92 static SVGTextContentElement* elementFromRenderer(RenderObject*); |
93 | 93 |
94 // textLength is not declared using the standard DECLARE_ANIMATED_LENGTH mac
ro | 94 // textLength is not declared using the standard DECLARE_ANIMATED_LENGTH mac
ro |
95 // as its getter needs special handling (return getComputedTextLength(), ins
tead of m_textLength). | 95 // as its getter needs special handling (return getComputedTextLength(), ins
tead of m_textLength). |
96 SVGLength& specifiedTextLength() { return m_specifiedTextLength; } | 96 SVGLength& specifiedTextLength() { return m_specifiedTextLength; } |
97 PassRefPtr<SVGAnimatedLength> textLengthAnimated(); | 97 PassRefPtr<SVGAnimatedLength> textLengthAnimated(); |
98 static const SVGPropertyInfo* textLengthPropertyInfo(); | 98 static const SVGPropertyInfo* textLengthPropertyInfo(); |
99 | 99 |
| 100 virtual void accept(Visitor* visitor) const OVERRIDE { SVGStyledElement::acc
ept(visitor); } |
| 101 |
100 protected: | 102 protected: |
101 SVGTextContentElement(const QualifiedName&, const Handle<Document>&); | 103 SVGTextContentElement(const QualifiedName&, const Handle<Document>&); |
102 | 104 |
103 virtual bool isValid() const { return SVGTests::isValid(); } | 105 virtual bool isValid() const { return SVGTests::isValid(); } |
104 | 106 |
105 bool isSupportedAttribute(const QualifiedName&); | 107 bool isSupportedAttribute(const QualifiedName&); |
106 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 108 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
107 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 109 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
108 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, const Handle<MutableStylePropertySet>&) OVERRIDE; | 110 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, const Handle<MutableStylePropertySet>&) OVERRIDE; |
109 virtual void svgAttributeChanged(const QualifiedName&); | 111 virtual void svgAttributeChanged(const QualifiedName&); |
(...skipping 23 matching lines...) Expand all Loading... |
133 inline SVGTextContentElement* toSVGTextContentElement(SVGElement* element) | 135 inline SVGTextContentElement* toSVGTextContentElement(SVGElement* element) |
134 { | 136 { |
135 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isTextContent()); | 137 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isTextContent()); |
136 return static_cast<SVGTextContentElement*>(element); | 138 return static_cast<SVGTextContentElement*>(element); |
137 } | 139 } |
138 | 140 |
139 } // namespace WebCore | 141 } // namespace WebCore |
140 | 142 |
141 #endif // ENABLE(SVG) | 143 #endif // ENABLE(SVG) |
142 #endif | 144 #endif |
OLD | NEW |