| 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 Apple Inc. All rights reserved. | 4 * Copyright (C) 2009 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class SVGElementRareData; | 44 class SVGElementRareData; |
| 45 class SVGFitToViewBox; | 45 class SVGFitToViewBox; |
| 46 class SVGSVGElement; | 46 class SVGSVGElement; |
| 47 | 47 |
| 48 void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyName
ToIdMap, const QualifiedName& attrName); | 48 void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyName
ToIdMap, const QualifiedName& attrName); |
| 49 | 49 |
| 50 class SVGElement : public Element { | 50 class SVGElement : public Element { |
| 51 public: | 51 public: |
| 52 virtual ~SVGElement(); | 52 virtual ~SVGElement(); |
| 53 | 53 |
| 54 virtual short tabIndex() const OVERRIDE; |
| 55 |
| 54 bool isOutermostSVGSVGElement() const; | 56 bool isOutermostSVGSVGElement() const; |
| 55 | 57 |
| 56 virtual String title() const OVERRIDE; | 58 virtual String title() const OVERRIDE; |
| 57 bool hasRelativeLengths() const { return !m_elementsWithRelativeLengths.isEm
pty(); } | 59 bool hasRelativeLengths() const { return !m_elementsWithRelativeLengths.isEm
pty(); } |
| 58 static bool isAnimatableCSSProperty(const QualifiedName&); | 60 static bool isAnimatableCSSProperty(const QualifiedName&); |
| 59 enum CTMScope { | 61 enum CTMScope { |
| 60 NearestViewportScope, // Used by SVGGraphicsElement::getCTM() | 62 NearestViewportScope, // Used by SVGGraphicsElement::getCTM() |
| 61 ScreenScope, // Used by SVGGraphicsElement::getScreenCTM() | 63 ScreenScope, // Used by SVGGraphicsElement::getScreenCTM() |
| 62 AncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List(
) | 64 AncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List(
) |
| 63 }; | 65 }; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 private: | 190 private: |
| 189 friend class SVGElementInstance; | 191 friend class SVGElementInstance; |
| 190 | 192 |
| 191 // FIXME: Author shadows should be allowed | 193 // FIXME: Author shadows should be allowed |
| 192 // https://bugs.webkit.org/show_bug.cgi?id=77938 | 194 // https://bugs.webkit.org/show_bug.cgi?id=77938 |
| 193 virtual bool areAuthorShadowsAllowed() const OVERRIDE FINAL { return false;
} | 195 virtual bool areAuthorShadowsAllowed() const OVERRIDE FINAL { return false;
} |
| 194 | 196 |
| 195 RenderStyle* computedStyle(PseudoId = NOPSEUDO); | 197 RenderStyle* computedStyle(PseudoId = NOPSEUDO); |
| 196 virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier =
NOPSEUDO) OVERRIDE FINAL { return computedStyle(pseudoElementSpecifier); } | 198 virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier =
NOPSEUDO) OVERRIDE FINAL { return computedStyle(pseudoElementSpecifier); } |
| 197 virtual void willRecalcStyle(StyleRecalcChange) OVERRIDE; | 199 virtual void willRecalcStyle(StyleRecalcChange) OVERRIDE; |
| 198 virtual bool isKeyboardFocusable() const OVERRIDE; | |
| 199 | 200 |
| 200 void buildPendingResourcesIfNeeded(); | 201 void buildPendingResourcesIfNeeded(); |
| 201 | 202 |
| 202 void mapInstanceToElement(SVGElementInstance*); | 203 void mapInstanceToElement(SVGElementInstance*); |
| 203 void removeInstanceMapping(SVGElementInstance*); | 204 void removeInstanceMapping(SVGElementInstance*); |
| 204 | 205 |
| 206 bool supportsSpatialNavigationFocus() const; |
| 207 |
| 205 void cleanupAnimatedProperties(); | 208 void cleanupAnimatedProperties(); |
| 206 friend class CleanUpAnimatedPropertiesCaller; | 209 friend class CleanUpAnimatedPropertiesCaller; |
| 207 | 210 |
| 208 HashSet<SVGElement*> m_elementsWithRelativeLengths; | 211 HashSet<SVGElement*> m_elementsWithRelativeLengths; |
| 209 | 212 |
| 210 typedef HashMap<QualifiedName, RefPtr<SVGAnimatedPropertyBase> > AttributeTo
PropertyMap; | 213 typedef HashMap<QualifiedName, RefPtr<SVGAnimatedPropertyBase> > AttributeTo
PropertyMap; |
| 211 AttributeToPropertyMap m_newAttributeToPropertyMap; | 214 AttributeToPropertyMap m_newAttributeToPropertyMap; |
| 212 | 215 |
| 213 #if !ASSERT_DISABLED | 216 #if !ASSERT_DISABLED |
| 214 bool m_inRelativeLengthClientsInvalidation; | 217 bool m_inRelativeLengthClientsInvalidation; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 231 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a
.matches(b); } | 234 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a
.matches(b); } |
| 232 }; | 235 }; |
| 233 | 236 |
| 234 DEFINE_ELEMENT_TYPE_CASTS(SVGElement, isSVGElement()); | 237 DEFINE_ELEMENT_TYPE_CASTS(SVGElement, isSVGElement()); |
| 235 | 238 |
| 236 template <> inline bool isElementOfType<const SVGElement>(const Node& node) { re
turn node.isSVGElement(); } | 239 template <> inline bool isElementOfType<const SVGElement>(const Node& node) { re
turn node.isSVGElement(); } |
| 237 | 240 |
| 238 } | 241 } |
| 239 | 242 |
| 240 #endif | 243 #endif |
| OLD | NEW |