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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 enum ApplyMotionTransform { | 77 enum ApplyMotionTransform { |
78 kExcludeMotionTransform, | 78 kExcludeMotionTransform, |
79 kIncludeMotionTransform | 79 kIncludeMotionTransform |
80 }; | 80 }; |
81 bool HasTransform(ApplyMotionTransform) const; | 81 bool HasTransform(ApplyMotionTransform) const; |
82 AffineTransform CalculateTransform(ApplyMotionTransform) const; | 82 AffineTransform CalculateTransform(ApplyMotionTransform) const; |
83 | 83 |
84 enum CTMScope { | 84 enum CTMScope { |
85 kNearestViewportScope, // Used by SVGGraphicsElement::getCTM() | 85 kNearestViewportScope, // Used by SVGGraphicsElement::getCTM() |
| 86 kScreenScope, // Used by SVGGraphicsElement::getScreenCTM() |
86 kAncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List() | 87 kAncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List() |
87 }; | 88 }; |
88 virtual AffineTransform LocalCoordinateSpaceTransform() const; | 89 virtual AffineTransform LocalCoordinateSpaceTransform(CTMScope) const; |
89 virtual bool NeedsPendingResourceHandling() const { return true; } | 90 virtual bool NeedsPendingResourceHandling() const { return true; } |
90 | 91 |
91 bool InstanceUpdatesBlocked() const; | 92 bool InstanceUpdatesBlocked() const; |
92 void SetInstanceUpdatesBlocked(bool); | 93 void SetInstanceUpdatesBlocked(bool); |
93 | 94 |
94 // Records the SVG element as having a Web Animation on an SVG attribute that | 95 // Records the SVG element as having a Web Animation on an SVG attribute that |
95 // needs applying. | 96 // needs applying. |
96 void SetWebAnimationsPending(); | 97 void SetWebAnimationsPending(); |
97 void ApplyActiveWebAnimations(); | 98 void ApplyActiveWebAnimations(); |
98 | 99 |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 inline bool IsElementOfType<const thisType>(const SVGElement& element) { \ | 341 inline bool IsElementOfType<const thisType>(const SVGElement& element) { \ |
341 return Is##thisType(element); \ | 342 return Is##thisType(element); \ |
342 } \ | 343 } \ |
343 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 344 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
344 | 345 |
345 } // namespace blink | 346 } // namespace blink |
346 | 347 |
347 #include "core/SVGElementTypeHelpers.h" | 348 #include "core/SVGElementTypeHelpers.h" |
348 | 349 |
349 #endif // SVGElement_h | 350 #endif // SVGElement_h |
OLD | NEW |