summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/svg/SVGTextContentElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGTextContentElement.h')
-rw-r--r--Source/WebCore/svg/SVGTextContentElement.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/WebCore/svg/SVGTextContentElement.h b/Source/WebCore/svg/SVGTextContentElement.h
index 7abffd8..94bba70 100644
--- a/Source/WebCore/svg/SVGTextContentElement.h
+++ b/Source/WebCore/svg/SVGTextContentElement.h
@@ -53,10 +53,13 @@ public:
int getCharNumAtPosition(const FloatPoint&) const;
void selectSubString(unsigned charnum, unsigned nchars, ExceptionCode&) const;
- bool isKnownAttribute(const QualifiedName&);
-
static SVGTextContentElement* elementFromRenderer(RenderObject*);
+ // textLength is not declared using the standard DECLARE_ANIMATED_LENGTH macro
+ // as its getter needs special handling (return getComputedTextLength(), instead of m_textLength).
+ SVGLength& specifiedTextLength() { return m_specifiedTextLength; }
+ PassRefPtr<SVGAnimatedLength> textLengthAnimated();
+
protected:
SVGTextContentElement(const QualifiedName&, Document*);
@@ -73,7 +76,9 @@ private:
virtual bool isTextContent() const { return true; }
// Animated property declarations
- DECLARE_ANIMATED_LENGTH(TextLength, textLength)
+ void synchronizeTextLength();
+ SVGLength m_specifiedTextLength;
+ mutable SVGSynchronizableAnimatedProperty<SVGLength> m_textLength;
DECLARE_ANIMATED_ENUMERATION(LengthAdjust, lengthAdjust)
// SVGExternalResourcesRequired