Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: Source/WebCore/svg/SVGTextContentElement.h

Issue 10443073: Merge 117225 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/svg/SVGAElement.cpp ('k') | Source/WebCore/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 virtual bool isValid() const { return SVGTests::isValid(); } 103 virtual bool isValid() const { return SVGTests::isValid(); }
104 104
105 bool isSupportedAttribute(const QualifiedName&); 105 bool isSupportedAttribute(const QualifiedName&);
106 virtual void parseAttribute(Attribute*) OVERRIDE; 106 virtual void parseAttribute(Attribute*) OVERRIDE;
107 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 107 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
108 virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRID E; 108 virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRID E;
109 virtual void svgAttributeChanged(const QualifiedName&); 109 virtual void svgAttributeChanged(const QualifiedName&);
110 110
111 virtual bool selfHasRelativeLengths() const; 111 virtual bool selfHasRelativeLengths() const;
112 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0);
113 112
114 private: 113 private:
115 virtual bool isTextContent() const { return true; } 114 virtual bool isTextContent() const { return true; }
116 115
117 // Custom 'textLength' property 116 // Custom 'textLength' property
118 static void synchronizeTextLength(void* contextElement); 117 static void synchronizeTextLength(void* contextElement);
119 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateTextLengthWrapper(void* contextElement); 118 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateTextLengthWrapper(void* contextElement);
120 mutable SVGSynchronizableAnimatedProperty<SVGLength> m_textLength; 119 mutable SVGSynchronizableAnimatedProperty<SVGLength> m_textLength;
121 SVGLength m_specifiedTextLength; 120 SVGLength m_specifiedTextLength;
122 121
123 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTextContentElement) 122 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTextContentElement)
124 DECLARE_ANIMATED_ENUMERATION(LengthAdjust, lengthAdjust, SVGLengthAdjust Type) 123 DECLARE_ANIMATED_ENUMERATION(LengthAdjust, lengthAdjust, SVGLengthAdjust Type)
125 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired) 124 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired)
126 END_DECLARE_ANIMATED_PROPERTIES 125 END_DECLARE_ANIMATED_PROPERTIES
127 126
128 // SVGTests 127 // SVGTests
129 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); } 128 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); }
130 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); } 129 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); }
131 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); } 130 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); }
132 }; 131 };
133 132
134 } // namespace WebCore 133 } // namespace WebCore
135 134
136 #endif // ENABLE(SVG) 135 #endif // ENABLE(SVG)
137 #endif 136 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGAElement.cpp ('k') | Source/WebCore/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698