| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 static SVGTextContentElement* elementFromRenderer(RenderObject*); | 89 static SVGTextContentElement* elementFromRenderer(RenderObject*); |
| 90 | 90 |
| 91 // textLength is not declared using the standard DECLARE_ANIMATED_LENGTH mac
ro | 91 // textLength is not declared using the standard DECLARE_ANIMATED_LENGTH mac
ro |
| 92 // as its getter needs special handling (return getComputedTextLength(), ins
tead of m_textLength). | 92 // as its getter needs special handling (return getComputedTextLength(), ins
tead of m_textLength). |
| 93 SVGLength& specifiedTextLength() { return m_specifiedTextLength; } | 93 SVGLength& specifiedTextLength() { return m_specifiedTextLength; } |
| 94 PassRefPtr<SVGAnimatedLength> textLength(); | 94 PassRefPtr<SVGAnimatedLength> textLength(); |
| 95 static const SVGPropertyInfo* textLengthPropertyInfo(); | 95 static const SVGPropertyInfo* textLengthPropertyInfo(); |
| 96 | 96 |
| 97 protected: | 97 protected: |
| 98 SVGTextContentElement(const QualifiedName&, Document*); | 98 SVGTextContentElement(const QualifiedName&, Document&); |
| 99 | 99 |
| 100 virtual bool isValid() const { return SVGTests::isValid(); } | 100 virtual bool isValid() const { return SVGTests::isValid(); } |
| 101 | 101 |
| 102 bool isSupportedAttribute(const QualifiedName&); | 102 bool isSupportedAttribute(const QualifiedName&); |
| 103 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 103 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 104 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 104 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| 105 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 105 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
| 106 virtual void svgAttributeChanged(const QualifiedName&); | 106 virtual void svgAttributeChanged(const QualifiedName&); |
| 107 | 107 |
| 108 virtual bool selfHasRelativeLengths() const; | 108 virtual bool selfHasRelativeLengths() const; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 124 | 124 |
| 125 inline SVGTextContentElement* toSVGTextContentElement(SVGElement* element) | 125 inline SVGTextContentElement* toSVGTextContentElement(SVGElement* element) |
| 126 { | 126 { |
| 127 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isTextContent()); | 127 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isTextContent()); |
| 128 return static_cast<SVGTextContentElement*>(element); | 128 return static_cast<SVGTextContentElement*>(element); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace WebCore | 131 } // namespace WebCore |
| 132 | 132 |
| 133 #endif | 133 #endif |
| OLD | NEW |