OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void removeTimeContainer(SVGSVGElement*); | 46 void removeTimeContainer(SVGSVGElement*); |
47 | 47 |
48 // Records the SVG element as having a Web Animation on an SVG attribute that | 48 // Records the SVG element as having a Web Animation on an SVG attribute that |
49 // needs applying. | 49 // needs applying. |
50 void addWebAnimationsPendingSVGElement(SVGElement&); | 50 void addWebAnimationsPendingSVGElement(SVGElement&); |
51 | 51 |
52 static void serviceOnAnimationFrame(Document&); | 52 static void serviceOnAnimationFrame(Document&); |
53 | 53 |
54 void startAnimations(); | 54 void startAnimations(); |
55 void pauseAnimations(); | 55 void pauseAnimations(); |
| 56 void serviceAnimations(); |
| 57 |
56 void dispatchSVGLoadEventToOutermostSVGElements(); | 58 void dispatchSVGLoadEventToOutermostSVGElements(); |
57 | 59 |
58 void reportError(const String&); | |
59 | |
60 SVGResourcesCache& resourcesCache() { return m_resourcesCache; } | 60 SVGResourcesCache& resourcesCache() { return m_resourcesCache; } |
61 | 61 |
62 void addSVGRootWithRelativeLengthDescendents(SVGSVGElement*); | 62 void addSVGRootWithRelativeLengthDescendents(SVGSVGElement*); |
63 void removeSVGRootWithRelativeLengthDescendents(SVGSVGElement*); | 63 void removeSVGRootWithRelativeLengthDescendents(SVGSVGElement*); |
64 bool isSVGRootWithRelativeLengthDescendents(SVGSVGElement*) const; | 64 bool isSVGRootWithRelativeLengthDescendents(SVGSVGElement*) const; |
65 void invalidateSVGRootsWithRelativeLengthDescendents(SubtreeLayoutScope*); | 65 void invalidateSVGRootsWithRelativeLengthDescendents(SubtreeLayoutScope*); |
66 | 66 |
67 bool zoomAndPanEnabled() const; | 67 bool zoomAndPanEnabled() const; |
68 | 68 |
69 void startPan(const FloatPoint& start); | 69 void startPan(const FloatPoint& start); |
70 void updatePan(const FloatPoint& pos) const; | 70 void updatePan(const FloatPoint& pos) const; |
71 | 71 |
72 static SVGSVGElement* rootElement(const Document&); | 72 static SVGSVGElement* rootElement(const Document&); |
73 SVGSVGElement* rootElement() const; | 73 SVGSVGElement* rootElement() const; |
74 | 74 |
75 DECLARE_TRACE(); | 75 DECLARE_TRACE(); |
76 | 76 |
77 private: | 77 private: |
78 Member<Document> m_document; | 78 Member<Document> m_document; |
79 HeapHashSet<Member<SVGSVGElement>> m_timeContainers; | 79 HeapHashSet<Member<SVGSVGElement>> m_timeContainers; |
80 using SVGElementSet = HeapHashSet<Member<SVGElement>>; | 80 using SVGElementSet = HeapHashSet<Member<SVGElement>>; |
81 SVGElementSet m_webAnimationsPendingSVGElements; | 81 SVGElementSet m_webAnimationsPendingSVGElements; |
82 SVGResourcesCache m_resourcesCache; | 82 SVGResourcesCache m_resourcesCache; |
83 // Root SVG elements with relative length descendants. | 83 // Root SVG elements with relative length descendants. |
84 HeapHashSet<Member<SVGSVGElement>> m_relativeLengthSVGRoots; | 84 HeapHashSet<Member<SVGSVGElement>> m_relativeLengthSVGRoots; |
85 FloatPoint m_translate; | 85 FloatPoint m_translate; |
86 #if DCHECK_IS_ON() | 86 #if DCHECK_IS_ON() |
87 bool m_inRelativeLengthSVGRootsInvalidation = false; | 87 bool m_inRelativeLengthSVGRootsInvalidation = false; |
88 #endif | 88 #endif |
89 | |
90 public: | |
91 void serviceAnimations(); | |
92 }; | 89 }; |
93 | 90 |
94 } // namespace blink | 91 } // namespace blink |
95 | 92 |
96 #endif | 93 #endif |
OLD | NEW |