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, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2009, 2014 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 16 matching lines...) Expand all Loading... |
27 #include "core/dom/Element.h" | 27 #include "core/dom/Element.h" |
28 #include "core/svg/SVGParsingError.h" | 28 #include "core/svg/SVGParsingError.h" |
29 #include "core/svg/properties/SVGPropertyInfo.h" | 29 #include "core/svg/properties/SVGPropertyInfo.h" |
30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
31 #include "wtf/Allocator.h" | 31 #include "wtf/Allocator.h" |
32 #include "wtf/HashMap.h" | 32 #include "wtf/HashMap.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class AffineTransform; | 36 class AffineTransform; |
37 class CSSCursorImageValue; | |
38 class Document; | 37 class Document; |
39 class SVGAnimatedPropertyBase; | 38 class SVGAnimatedPropertyBase; |
40 class SubtreeLayoutScope; | 39 class SubtreeLayoutScope; |
41 class SVGAnimatedString; | 40 class SVGAnimatedString; |
42 class SVGCursorElement; | |
43 class SVGElement; | 41 class SVGElement; |
44 class SVGElementProxySet; | 42 class SVGElementProxySet; |
45 class SVGElementRareData; | 43 class SVGElementRareData; |
46 class SVGPropertyBase; | 44 class SVGPropertyBase; |
47 class SVGSVGElement; | 45 class SVGSVGElement; |
48 class SVGUseElement; | 46 class SVGUseElement; |
49 | 47 |
50 typedef HeapHashSet<Member<SVGElement>> SVGElementSet; | 48 typedef HeapHashSet<Member<SVGElement>> SVGElementSet; |
51 | 49 |
52 class CORE_EXPORT SVGElement : public Element { | 50 class CORE_EXPORT SVGElement : public Element { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 ensureUniqueElementData().m_animatedSVGAttributesAreDirty = true; | 130 ensureUniqueElementData().m_animatedSVGAttributesAreDirty = true; |
133 } | 131 } |
134 void invalidateSVGPresentationAttributeStyle() { | 132 void invalidateSVGPresentationAttributeStyle() { |
135 ensureUniqueElementData().m_presentationAttributeStyleIsDirty = true; | 133 ensureUniqueElementData().m_presentationAttributeStyleIsDirty = true; |
136 } | 134 } |
137 | 135 |
138 const HeapHashSet<WeakMember<SVGElement>>& instancesForElement() const; | 136 const HeapHashSet<WeakMember<SVGElement>>& instancesForElement() const; |
139 void mapInstanceToElement(SVGElement*); | 137 void mapInstanceToElement(SVGElement*); |
140 void removeInstanceMapping(SVGElement*); | 138 void removeInstanceMapping(SVGElement*); |
141 | 139 |
142 void setCursorElement(SVGCursorElement*); | |
143 void setCursorImageValue(const CSSCursorImageValue*); | |
144 | |
145 SVGElement* correspondingElement() const; | 140 SVGElement* correspondingElement() const; |
146 void setCorrespondingElement(SVGElement*); | 141 void setCorrespondingElement(SVGElement*); |
147 SVGUseElement* correspondingUseElement() const; | 142 SVGUseElement* correspondingUseElement() const; |
148 | 143 |
149 void synchronizeAnimatedSVGAttribute(const QualifiedName&) const; | 144 void synchronizeAnimatedSVGAttribute(const QualifiedName&) const; |
150 | 145 |
151 PassRefPtr<ComputedStyle> customStyleForLayoutObject() final; | 146 PassRefPtr<ComputedStyle> customStyleForLayoutObject() final; |
152 | 147 |
153 #if DCHECK_IS_ON() | 148 #if DCHECK_IS_ON() |
154 virtual bool isAnimatableAttribute(const QualifiedName&) const; | 149 virtual bool isAnimatableAttribute(const QualifiedName&) const; |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 inline bool isElementOfType<const thisType>(const SVGElement& element) { \ | 337 inline bool isElementOfType<const thisType>(const SVGElement& element) { \ |
343 return is##thisType(element); \ | 338 return is##thisType(element); \ |
344 } \ | 339 } \ |
345 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 340 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
346 | 341 |
347 } // namespace blink | 342 } // namespace blink |
348 | 343 |
349 #include "core/SVGElementTypeHelpers.h" | 344 #include "core/SVGElementTypeHelpers.h" |
350 | 345 |
351 #endif // SVGElement_h | 346 #endif // SVGElement_h |
OLD | NEW |