| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 MutableStylePropertySet* animatedSMILStyleProperties() const; | 139 MutableStylePropertySet* animatedSMILStyleProperties() const; |
| 140 MutableStylePropertySet* ensureAnimatedSMILStyleProperties(); | 140 MutableStylePropertySet* ensureAnimatedSMILStyleProperties(); |
| 141 void setUseOverrideComputedStyle(bool); | 141 void setUseOverrideComputedStyle(bool); |
| 142 | 142 |
| 143 virtual bool haveLoadedRequiredResources(); | 143 virtual bool haveLoadedRequiredResources(); |
| 144 | 144 |
| 145 void invalidateRelativeLengthClients(SubtreeLayoutScope* = 0); | 145 void invalidateRelativeLengthClients(SubtreeLayoutScope* = 0); |
| 146 | 146 |
| 147 void addToPropertyMap(PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase>); | 147 void addToPropertyMap(PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase>); |
| 148 | 148 |
| 149 SVGAnimatedString* className(); | 149 SVGAnimatedString* className() { return m_className.get(); } |
| 150 | 150 |
| 151 bool inUseShadowTree() const; | 151 bool inUseShadowTree() const; |
| 152 | 152 |
| 153 SVGElementSet* setOfIncomingReferences() const; | 153 SVGElementSet* setOfIncomingReferences() const; |
| 154 void addReferenceTo(SVGElement*); | 154 void addReferenceTo(SVGElement*); |
| 155 void rebuildAllIncomingReferences(); | 155 void rebuildAllIncomingReferences(); |
| 156 void removeAllIncomingReferences(); | 156 void removeAllIncomingReferences(); |
| 157 void removeAllOutgoingReferences(); | 157 void removeAllOutgoingReferences(); |
| 158 | 158 |
| 159 class InvalidationGuard { | 159 class InvalidationGuard { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 void childrenChanged(const ChildrenChange&) override; | 201 void childrenChanged(const ChildrenChange&) override; |
| 202 | 202 |
| 203 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); | 203 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); |
| 204 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s
elfHasRelativeLengths(), this); } | 204 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s
elfHasRelativeLengths(), this); } |
| 205 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*); | 205 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*); |
| 206 static void markForLayoutAndParentResourceInvalidation(LayoutObject*); | 206 static void markForLayoutAndParentResourceInvalidation(LayoutObject*); |
| 207 | 207 |
| 208 virtual bool selfHasRelativeLengths() const { return false; } | 208 virtual bool selfHasRelativeLengths() const { return false; } |
| 209 | 209 |
| 210 SVGElementRareData* ensureSVGRareData(); | 210 SVGElementRareData* ensureSVGRareData(); |
| 211 bool hasSVGRareData() const; | 211 inline bool hasSVGRareData() const { return m_SVGRareData; } |
| 212 SVGElementRareData* svgRareData() const; | 212 inline SVGElementRareData* svgRareData() const |
| 213 { |
| 214 ASSERT(m_SVGRareData); |
| 215 return m_SVGRareData.get(); |
| 216 } |
| 213 | 217 |
| 214 // SVGFitToViewBox::parseAttribute uses reportAttributeParsingError. | 218 // SVGFitToViewBox::parseAttribute uses reportAttributeParsingError. |
| 215 friend class SVGFitToViewBox; | 219 friend class SVGFitToViewBox; |
| 216 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons
t AtomicString&); | 220 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons
t AtomicString&); |
| 217 bool hasFocusEventListeners() const; | 221 bool hasFocusEventListeners() const; |
| 218 | 222 |
| 219 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB
eRawPtr<EventListener>, const EventListenerOptions&) final; | 223 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB
eRawPtr<EventListener>, const EventListenerOptions&) final; |
| 220 bool removeEventListenerInternal(const AtomicString& eventType, PassRefPtrWi
llBeRawPtr<EventListener>, const EventListenerOptions&) final; | 224 bool removeEventListenerInternal(const AtomicString& eventType, PassRefPtrWi
llBeRawPtr<EventListener>, const EventListenerOptions&) final; |
| 221 | 225 |
| 222 private: | 226 private: |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T
>& node) { return is##thisType(node.get()); } \ | 279 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T
>& node) { return is##thisType(node.get()); } \ |
| 276 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n
ode) { return is##thisType(node.get()); } \ | 280 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n
ode) { return is##thisType(node.get()); } \ |
| 277 template <> inline bool isElementOfType<const thisType>(const SVGElement& el
ement) { return is##thisType(element); } \ | 281 template <> inline bool isElementOfType<const thisType>(const SVGElement& el
ement) { return is##thisType(element); } \ |
| 278 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 282 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 279 | 283 |
| 280 } // namespace blink | 284 } // namespace blink |
| 281 | 285 |
| 282 #include "core/SVGElementTypeHelpers.h" | 286 #include "core/SVGElementTypeHelpers.h" |
| 283 | 287 |
| 284 #endif // SVGElement_h | 288 #endif // SVGElement_h |
| OLD | NEW |