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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 bool hasTagName(const SVGQualifiedName& name) const { | 67 bool hasTagName(const SVGQualifiedName& name) const { |
68 return hasLocalName(name.localName()); | 68 return hasLocalName(name.localName()); |
69 } | 69 } |
70 | 70 |
71 String title() const override; | 71 String title() const override; |
72 bool hasRelativeLengths() const { | 72 bool hasRelativeLengths() const { |
73 return !m_elementsWithRelativeLengths.isEmpty(); | 73 return !m_elementsWithRelativeLengths.isEmpty(); |
74 } | 74 } |
75 static bool isAnimatableCSSProperty(const QualifiedName&); | 75 static bool isAnimatableCSSProperty(const QualifiedName&); |
76 | 76 |
| 77 enum ApplyMotionTransform { ExcludeMotionTransform, IncludeMotionTransform }; |
| 78 bool hasTransform(ApplyMotionTransform) const; |
| 79 AffineTransform calculateTransform(ApplyMotionTransform) const; |
| 80 |
77 enum CTMScope { | 81 enum CTMScope { |
78 NearestViewportScope, // Used by SVGGraphicsElement::getCTM() | 82 NearestViewportScope, // Used by SVGGraphicsElement::getCTM() |
79 ScreenScope, // Used by SVGGraphicsElement::getScreenCTM() | 83 ScreenScope, // Used by SVGGraphicsElement::getScreenCTM() |
80 AncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List() | 84 AncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List() |
81 }; | 85 }; |
82 virtual AffineTransform localCoordinateSpaceTransform(CTMScope) const; | 86 virtual AffineTransform localCoordinateSpaceTransform(CTMScope) const; |
83 virtual bool needsPendingResourceHandling() const { return true; } | 87 virtual bool needsPendingResourceHandling() const { return true; } |
84 | 88 |
85 bool instanceUpdatesBlocked() const; | 89 bool instanceUpdatesBlocked() const; |
86 void setInstanceUpdatesBlocked(bool); | 90 void setInstanceUpdatesBlocked(bool); |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 inline bool isElementOfType<const thisType>(const SVGElement& element) { \ | 348 inline bool isElementOfType<const thisType>(const SVGElement& element) { \ |
345 return is##thisType(element); \ | 349 return is##thisType(element); \ |
346 } \ | 350 } \ |
347 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 351 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
348 | 352 |
349 } // namespace blink | 353 } // namespace blink |
350 | 354 |
351 #include "core/SVGElementTypeHelpers.h" | 355 #include "core/SVGElementTypeHelpers.h" |
352 | 356 |
353 #endif // SVGElement_h | 357 #endif // SVGElement_h |
OLD | NEW |