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 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2009 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 virtual bool isStructurallyExternal() const { return false; } | 95 virtual bool isStructurallyExternal() const { return false; } |
96 | 96 |
97 // For SVGTests | 97 // For SVGTests |
98 virtual bool isValid() const { return true; } | 98 virtual bool isValid() const { return true; } |
99 | 99 |
100 virtual void svgAttributeChanged(const QualifiedName&); | 100 virtual void svgAttributeChanged(const QualifiedName&); |
101 | 101 |
102 PassRefPtr<SVGAnimatedPropertyBase> propertyFromAttribute(const QualifiedNam
e& attributeName); | 102 PassRefPtr<SVGAnimatedPropertyBase> propertyFromAttribute(const QualifiedNam
e& attributeName); |
103 static AnimatedPropertyType animatedPropertyTypeForCSSAttribute(const Qualif
iedName& attributeName); | 103 static AnimatedPropertyType animatedPropertyTypeForCSSAttribute(const Qualif
iedName& attributeName); |
104 | 104 |
105 void sendSVGLoadEventIfPossible(bool sendParentLoadEvents = false); | 105 void sendSVGLoadEventToSelfAndAncestorChainIfPossible(); |
| 106 bool sendSVGLoadEventIfPossible(); |
106 void sendSVGLoadEventIfPossibleAsynchronously(); | 107 void sendSVGLoadEventIfPossibleAsynchronously(); |
107 void svgLoadEventTimerFired(Timer<SVGElement>*); | 108 void svgLoadEventTimerFired(Timer<SVGElement>*); |
108 virtual Timer<SVGElement>* svgLoadEventTimer(); | 109 virtual Timer<SVGElement>* svgLoadEventTimer(); |
109 | 110 |
110 virtual AffineTransform* supplementalTransform() { return 0; } | 111 virtual AffineTransform* supplementalTransform() { return 0; } |
111 | 112 |
112 void invalidateSVGAttributes() { ensureUniqueElementData().m_animatedSVGAttr
ibutesAreDirty = true; } | 113 void invalidateSVGAttributes() { ensureUniqueElementData().m_animatedSVGAttr
ibutesAreDirty = true; } |
113 void invalidateSVGPresentationAttributeStyle() { ensureUniqueElementData().m
_presentationAttributeStyleIsDirty = true; } | 114 void invalidateSVGPresentationAttributeStyle() { ensureUniqueElementData().m
_presentationAttributeStyleIsDirty = true; } |
114 | 115 |
115 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& instancesForEl
ement() const; | 116 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& instancesForEl
ement() const; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a
.matches(b); } | 269 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a
.matches(b); } |
269 }; | 270 }; |
270 | 271 |
271 DEFINE_ELEMENT_TYPE_CASTS(SVGElement, isSVGElement()); | 272 DEFINE_ELEMENT_TYPE_CASTS(SVGElement, isSVGElement()); |
272 | 273 |
273 template <> inline bool isElementOfType<const SVGElement>(const Node& node) { re
turn node.isSVGElement(); } | 274 template <> inline bool isElementOfType<const SVGElement>(const Node& node) { re
turn node.isSVGElement(); } |
274 | 275 |
275 } | 276 } |
276 | 277 |
277 #endif | 278 #endif |
OLD | NEW |