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

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

Issue 298873003: SVG: SVGAnimateElement should not cache |m_animatedElements| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert change on SVGElementInstance.cpp Created 6 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 | Annotate | Revision Log
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void pauseAnimations(); 62 void pauseAnimations();
63 void dispatchSVGLoadEventToOutermostSVGElements(); 63 void dispatchSVGLoadEventToOutermostSVGElements();
64 64
65 void reportWarning(const String&); 65 void reportWarning(const String&);
66 void reportError(const String&); 66 void reportError(const String&);
67 67
68 SVGResourcesCache* resourcesCache() const { return m_resourcesCache.get(); } 68 SVGResourcesCache* resourcesCache() const { return m_resourcesCache.get(); }
69 69
70 HashSet<SVGElement*>* setOfElementsReferencingTarget(SVGElement* referencedE lement) const; 70 HashSet<SVGElement*>* setOfElementsReferencingTarget(SVGElement* referencedE lement) const;
71 void addElementReferencingTarget(SVGElement* referencingElement, SVGElement* referencedElement); 71 void addElementReferencingTarget(SVGElement* referencingElement, SVGElement* referencedElement);
72 enum RebuildTargetFilter {
73 AllElements,
74 ExcludeUseElements
75 };
76 void rebuildAllElementReferencesForTarget(SVGElement*, RebuildTargetFilter = ExcludeUseElements);
72 void removeAllTargetReferencesForElement(SVGElement*); 77 void removeAllTargetReferencesForElement(SVGElement*);
73 void rebuildAllElementReferencesForTarget(SVGElement*);
74 void removeAllElementReferencesForTarget(SVGElement*); 78 void removeAllElementReferencesForTarget(SVGElement*);
75 79
76 void addSVGRootWithRelativeLengthDescendents(SVGSVGElement*); 80 void addSVGRootWithRelativeLengthDescendents(SVGSVGElement*);
77 void removeSVGRootWithRelativeLengthDescendents(SVGSVGElement*); 81 void removeSVGRootWithRelativeLengthDescendents(SVGSVGElement*);
78 bool isSVGRootWithRelativeLengthDescendents(SVGSVGElement*) const; 82 bool isSVGRootWithRelativeLengthDescendents(SVGSVGElement*) const;
79 void invalidateSVGRootsWithRelativeLengthDescendents(SubtreeLayoutScope*); 83 void invalidateSVGRootsWithRelativeLengthDescendents(SubtreeLayoutScope*);
80 84
81 #if ENABLE(SVG_FONTS) 85 #if ENABLE(SVG_FONTS)
82 const WillBeHeapHashSet<RawPtrWillBeMember<SVGFontFaceElement> >& svgFontFac eElements() const { return m_svgFontFaceElements; } 86 const WillBeHeapHashSet<RawPtrWillBeMember<SVGFontFaceElement> >& svgFontFac eElements() const { return m_svgFontFaceElements; }
83 void registerSVGFontFaceElement(SVGFontFaceElement*); 87 void registerSVGFontFaceElement(SVGFontFaceElement*);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void markPendingResourcesForRemoval(const AtomicString&); 138 void markPendingResourcesForRemoval(const AtomicString&);
135 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); 139 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&);
136 140
137 private: 141 private:
138 PassOwnPtr<SVGPendingElements> removePendingResourceForRemoval(const AtomicS tring&); 142 PassOwnPtr<SVGPendingElements> removePendingResourceForRemoval(const AtomicS tring&);
139 }; 143 };
140 144
141 } 145 }
142 146
143 #endif 147 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698