Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGDocumentExtensions.h

Issue 1941403002: Make servicing of SMIL animations require a FrameView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void addTimeContainer(SVGSVGElement*); 48 void addTimeContainer(SVGSVGElement*);
49 void removeTimeContainer(SVGSVGElement*); 49 void removeTimeContainer(SVGSVGElement*);
50 50
51 // Records the SVG element as having a Web Animation on an SVG attribute tha t needs applying. 51 // Records the SVG element as having a Web Animation on an SVG attribute tha t needs applying.
52 void addWebAnimationsPendingSVGElement(SVGElement&); 52 void addWebAnimationsPendingSVGElement(SVGElement&);
53 53
54 void addResource(const AtomicString& id, LayoutSVGResourceContainer*); 54 void addResource(const AtomicString& id, LayoutSVGResourceContainer*);
55 void removeResource(const AtomicString& id); 55 void removeResource(const AtomicString& id);
56 LayoutSVGResourceContainer* resourceById(const AtomicString& id) const; 56 LayoutSVGResourceContainer* resourceById(const AtomicString& id) const;
57 57
58 static void serviceOnAnimationFrame(Document&, double monotonicAnimationStar tTime); 58 static void serviceOnAnimationFrame(Document&);
59 59
60 void startAnimations(); 60 void startAnimations();
61 void pauseAnimations(); 61 void pauseAnimations();
62 void dispatchSVGLoadEventToOutermostSVGElements(); 62 void dispatchSVGLoadEventToOutermostSVGElements();
63 63
64 void reportError(const String&); 64 void reportError(const String&);
65 65
66 SVGResourcesCache& resourcesCache() { return m_resourcesCache; } 66 SVGResourcesCache& resourcesCache() { return m_resourcesCache; }
67 67
68 void addSVGRootWithRelativeLengthDescendents(SVGSVGElement*); 68 void addSVGRootWithRelativeLengthDescendents(SVGSVGElement*);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // which are referenced by any object in the SVG document, but do NOT exist yet. 100 // which are referenced by any object in the SVG document, but do NOT exist yet.
101 // For instance, dynamically build gradients / patterns / clippers... 101 // For instance, dynamically build gradients / patterns / clippers...
102 void addPendingResource(const AtomicString& id, Element*); 102 void addPendingResource(const AtomicString& id, Element*);
103 bool hasPendingResource(const AtomicString& id) const; 103 bool hasPendingResource(const AtomicString& id) const;
104 bool isElementPendingResources(Element*) const; 104 bool isElementPendingResources(Element*) const;
105 bool isElementPendingResource(Element*, const AtomicString& id) const; 105 bool isElementPendingResource(Element*, const AtomicString& id) const;
106 void clearHasPendingResourcesIfPossible(Element*); 106 void clearHasPendingResourcesIfPossible(Element*);
107 void removeElementFromPendingResources(Element*); 107 void removeElementFromPendingResources(Element*);
108 SVGPendingElements* removePendingResource(const AtomicString& id); 108 SVGPendingElements* removePendingResource(const AtomicString& id);
109 109
110 void serviceAnimations(double monotonicAnimationStartTime); 110 void serviceAnimations();
111 111
112 // The following two functions are used for scheduling a pending resource to be removed. 112 // The following two functions are used for scheduling a pending resource to be removed.
113 void markPendingResourcesForRemoval(const AtomicString&); 113 void markPendingResourcesForRemoval(const AtomicString&);
114 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); 114 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&);
115 115
116 private: 116 private:
117 SVGPendingElements* removePendingResourceForRemoval(const AtomicString&); 117 SVGPendingElements* removePendingResourceForRemoval(const AtomicString&);
118 }; 118 };
119 119
120 } // namespace blink 120 } // namespace blink
121 121
122 #endif 122 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/PageAnimator.cpp ('k') | third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698