| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 { | 210 { |
| 211 ASSERT(m_SVGRareData); | 211 ASSERT(m_SVGRareData); |
| 212 return m_SVGRareData.get(); | 212 return m_SVGRareData.get(); |
| 213 } | 213 } |
| 214 | 214 |
| 215 // SVGFitToViewBox::parseAttribute uses reportAttributeParsingError. | 215 // SVGFitToViewBox::parseAttribute uses reportAttributeParsingError. |
| 216 friend class SVGFitToViewBox; | 216 friend class SVGFitToViewBox; |
| 217 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons
t AtomicString&); | 217 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons
t AtomicString&); |
| 218 bool hasFocusEventListeners() const; | 218 bool hasFocusEventListeners() const; |
| 219 | 219 |
| 220 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtr<Even
tListener>, const EventListenerOptions&) final; | 220 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB
eRawPtr<EventListener>, const EventListenerOptions&) final; |
| 221 bool removeEventListenerInternal(const AtomicString& eventType, PassRefPtr<E
ventListener>, const EventListenerOptions&) final; | 221 bool removeEventListenerInternal(const AtomicString& eventType, PassRefPtrWi
llBeRawPtr<EventListener>, const EventListenerOptions&) final; |
| 222 | 222 |
| 223 private: | 223 private: |
| 224 bool isSVGElement() const = delete; // This will catch anyone doing an unnec
essary check. | 224 bool isSVGElement() const = delete; // This will catch anyone doing an unnec
essary check. |
| 225 bool isStyledElement() const = delete; // This will catch anyone doing an un
necessary check. | 225 bool isStyledElement() const = delete; // This will catch anyone doing an un
necessary check. |
| 226 | 226 |
| 227 const ComputedStyle* ensureComputedStyle(PseudoId = NOPSEUDO); | 227 const ComputedStyle* ensureComputedStyle(PseudoId = NOPSEUDO); |
| 228 const ComputedStyle* virtualEnsureComputedStyle(PseudoId pseudoElementSpecif
ier = NOPSEUDO) final { return ensureComputedStyle(pseudoElementSpecifier); } | 228 const ComputedStyle* virtualEnsureComputedStyle(PseudoId pseudoElementSpecif
ier = NOPSEUDO) final { return ensureComputedStyle(pseudoElementSpecifier); } |
| 229 void willRecalcStyle(StyleRecalcChange) override; | 229 void willRecalcStyle(StyleRecalcChange) override; |
| 230 | 230 |
| 231 void buildPendingResourcesIfNeeded(); | 231 void buildPendingResourcesIfNeeded(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 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 PassRefPtrWillBeRawPtr<T
>& node) { return is##thisType(node.get()); } \ |
| 277 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n
ode) { return is##thisType(node.get()); } \ | 277 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n
ode) { return is##thisType(node.get()); } \ |
| 278 template <> inline bool isElementOfType<const thisType>(const SVGElement& el
ement) { return is##thisType(element); } \ | 278 template <> inline bool isElementOfType<const thisType>(const SVGElement& el
ement) { return is##thisType(element); } \ |
| 279 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 279 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 280 | 280 |
| 281 } // namespace blink | 281 } // namespace blink |
| 282 | 282 |
| 283 #include "core/SVGElementTypeHelpers.h" | 283 #include "core/SVGElementTypeHelpers.h" |
| 284 | 284 |
| 285 #endif // SVGElement_h | 285 #endif // SVGElement_h |
| OLD | NEW |