| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 ASSERT(m_SVGRareData); | 219 ASSERT(m_SVGRareData); |
| 220 return m_SVGRareData.get(); | 220 return m_SVGRareData.get(); |
| 221 } | 221 } |
| 222 | 222 |
| 223 // SVGFitToViewBox::parseAttribute uses reportAttributeParsingError. | 223 // SVGFitToViewBox::parseAttribute uses reportAttributeParsingError. |
| 224 friend class SVGFitToViewBox; | 224 friend class SVGFitToViewBox; |
| 225 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons
t AtomicString&); | 225 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons
t AtomicString&); |
| 226 bool hasFocusEventListeners() const; | 226 bool hasFocusEventListeners() const; |
| 227 | 227 |
| 228 private: | 228 private: |
| 229 // FIXME: Author shadows should be allowed | |
| 230 // https://bugs.webkit.org/show_bug.cgi?id=77938 | |
| 231 virtual bool areAuthorShadowsAllowed() const override final { return false;
} | |
| 232 | |
| 233 bool isSVGElement() const WTF_DELETED_FUNCTION; // This will catch anyone do
ing an unnecessary check. | 229 bool isSVGElement() const WTF_DELETED_FUNCTION; // This will catch anyone do
ing an unnecessary check. |
| 234 bool isStyledElement() const WTF_DELETED_FUNCTION; // This will catch anyone
doing an unnecessary check. | 230 bool isStyledElement() const WTF_DELETED_FUNCTION; // This will catch anyone
doing an unnecessary check. |
| 235 | 231 |
| 236 RenderStyle* computedStyle(PseudoId = NOPSEUDO); | 232 RenderStyle* computedStyle(PseudoId = NOPSEUDO); |
| 237 virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier =
NOPSEUDO) override final { return computedStyle(pseudoElementSpecifier); } | 233 virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier =
NOPSEUDO) override final { return computedStyle(pseudoElementSpecifier); } |
| 238 virtual void willRecalcStyle(StyleRecalcChange) override; | 234 virtual void willRecalcStyle(StyleRecalcChange) override; |
| 239 | 235 |
| 240 void buildPendingResourcesIfNeeded(); | 236 void buildPendingResourcesIfNeeded(); |
| 241 | 237 |
| 242 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> > m_elementsWithRelativ
eLengths; | 238 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> > m_elementsWithRelativ
eLengths; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ | 280 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ |
| 285 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ | 281 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ |
| 286 template <> inline bool isElementOfType<const thisType>(const SVGElement& el
ement) { return is##thisType(element); } \ | 282 template <> inline bool isElementOfType<const thisType>(const SVGElement& el
ement) { return is##thisType(element); } \ |
| 287 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 283 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 288 | 284 |
| 289 } // namespace blink | 285 } // namespace blink |
| 290 | 286 |
| 291 #include "core/SVGElementTypeHelpers.h" | 287 #include "core/SVGElementTypeHelpers.h" |
| 292 | 288 |
| 293 #endif // SVGElement_h | 289 #endif // SVGElement_h |
| OLD | NEW |