| 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, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 // Custom 'd' property | 111 // Custom 'd' property |
| 112 static void synchronizeD(SVGElement* contextElement); | 112 static void synchronizeD(SVGElement* contextElement); |
| 113 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateDWrapper(SVGElement* co
ntextElement); | 113 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateDWrapper(SVGElement* co
ntextElement); |
| 114 | 114 |
| 115 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPathElement) | 115 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPathElement) |
| 116 DECLARE_ANIMATED_NUMBER(PathLength, pathLength) | 116 DECLARE_ANIMATED_NUMBER(PathLength, pathLength) |
| 117 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 117 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
| 118 END_DECLARE_ANIMATED_PROPERTIES | 118 END_DECLARE_ANIMATED_PROPERTIES |
| 119 | 119 |
| 120 // SVGTests | |
| 121 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } | |
| 122 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } | |
| 123 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } | |
| 124 | |
| 125 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 120 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
| 126 | 121 |
| 127 virtual Node::InsertionNotificationRequest insertedInto(ContainerNode*) OVER
RIDE; | 122 virtual Node::InsertionNotificationRequest insertedInto(ContainerNode*) OVER
RIDE; |
| 128 virtual void removedFrom(ContainerNode*) OVERRIDE; | 123 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 129 | 124 |
| 130 void invalidateMPathDependencies(); | 125 void invalidateMPathDependencies(); |
| 131 | 126 |
| 132 private: | 127 private: |
| 133 OwnPtr<SVGPathByteStream> m_pathByteStream; | 128 OwnPtr<SVGPathByteStream> m_pathByteStream; |
| 134 mutable SVGSynchronizableAnimatedProperty<SVGPathSegList> m_pathSegList; | 129 mutable SVGSynchronizableAnimatedProperty<SVGPathSegList> m_pathSegList; |
| 135 bool m_isAnimValObserved; | 130 bool m_isAnimValObserved; |
| 136 }; | 131 }; |
| 137 | 132 |
| 138 inline SVGPathElement* toSVGPathElement(SVGElement* element) | 133 inline SVGPathElement* toSVGPathElement(SVGElement* element) |
| 139 { | 134 { |
| 140 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::p
athTag)); | 135 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::p
athTag)); |
| 141 return static_cast<SVGPathElement*>(element); | 136 return static_cast<SVGPathElement*>(element); |
| 142 } | 137 } |
| 143 | 138 |
| 144 } // namespace WebCore | 139 } // namespace WebCore |
| 145 | 140 |
| 146 #endif | 141 #endif |
| OLD | NEW |