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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual short tabIndex() const override; | 60 virtual short tabIndex() const override; |
61 virtual bool supportsFocus() const override { return false; } | 61 virtual bool supportsFocus() const override { return false; } |
62 | 62 |
63 bool isOutermostSVGSVGElement() const; | 63 bool isOutermostSVGSVGElement() const; |
64 | 64 |
65 bool hasTagName(const SVGQualifiedName& name) const { return hasLocalName(na
me.localName()); } | 65 bool hasTagName(const SVGQualifiedName& name) const { return hasLocalName(na
me.localName()); } |
66 | 66 |
67 virtual String title() const override; | 67 virtual String title() const override; |
68 bool hasRelativeLengths() const { return !m_elementsWithRelativeLengths.isEm
pty(); } | 68 bool hasRelativeLengths() const { return !m_elementsWithRelativeLengths.isEm
pty(); } |
69 static bool isAnimatableCSSProperty(const QualifiedName&); | 69 static bool isAnimatableCSSProperty(const QualifiedName&); |
70 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const {
return false; } | |
71 | 70 |
72 enum CTMScope { | 71 enum CTMScope { |
73 NearestViewportScope, // Used by SVGGraphicsElement::getCTM() | 72 NearestViewportScope, // Used by SVGGraphicsElement::getCTM() |
74 ScreenScope, // Used by SVGGraphicsElement::getScreenCTM() | 73 ScreenScope, // Used by SVGGraphicsElement::getScreenCTM() |
75 AncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List(
) | 74 AncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List(
) |
76 }; | 75 }; |
77 virtual AffineTransform localCoordinateSpaceTransform(CTMScope) const; | 76 virtual AffineTransform localCoordinateSpaceTransform(CTMScope) const; |
78 virtual bool needsPendingResourceHandling() const { return true; } | 77 virtual bool needsPendingResourceHandling() const { return true; } |
79 | 78 |
80 bool instanceUpdatesBlocked() const; | 79 bool instanceUpdatesBlocked() const; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 RawPtrWillBeMember<SVGElement> m_targetElement; | 185 RawPtrWillBeMember<SVGElement> m_targetElement; |
187 }; | 186 }; |
188 | 187 |
189 void invalidateInstances(); | 188 void invalidateInstances(); |
190 | 189 |
191 DECLARE_VIRTUAL_TRACE(); | 190 DECLARE_VIRTUAL_TRACE(); |
192 | 191 |
193 static const AtomicString& eventParameterName(); | 192 static const AtomicString& eventParameterName(); |
194 | 193 |
195 virtual bool isPresentationAttribute(const QualifiedName&) const override; | 194 virtual bool isPresentationAttribute(const QualifiedName&) const override; |
| 195 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const {
return false; } |
196 | 196 |
197 protected: | 197 protected: |
198 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem
ent); | 198 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem
ent); |
199 | 199 |
200 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 200 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
201 | 201 |
202 // FIXME: |parseAttributeNew| is a new implementation of parseAttribute | 202 // FIXME: |parseAttributeNew| is a new implementation of parseAttribute |
203 // which maps attribute using |m_attributeToPropertyMap|. | 203 // which maps attribute using |m_attributeToPropertyMap|. |
204 // This is to replace |parseAttribute()| after all derived class switch to c
all this. | 204 // This is to replace |parseAttribute()| after all derived class switch to c
all this. |
205 void parseAttributeNew(const QualifiedName&, const AtomicString&); | 205 void parseAttributeNew(const QualifiedName&, const AtomicString&); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T
>& node) { return is##thisType(node.get()); } \ | 287 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T
>& node) { return is##thisType(node.get()); } \ |
288 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n
ode) { return is##thisType(node.get()); } \ | 288 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n
ode) { return is##thisType(node.get()); } \ |
289 template <> inline bool isElementOfType<const thisType>(const SVGElement& el
ement) { return is##thisType(element); } \ | 289 template <> inline bool isElementOfType<const thisType>(const SVGElement& el
ement) { return is##thisType(element); } \ |
290 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 290 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
291 | 291 |
292 } // namespace blink | 292 } // namespace blink |
293 | 293 |
294 #include "core/SVGElementTypeHelpers.h" | 294 #include "core/SVGElementTypeHelpers.h" |
295 | 295 |
296 #endif // SVGElement_h | 296 #endif // SVGElement_h |
OLD | NEW |