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

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

Issue 2490163002: Reland of "Tracking reference filter mutation via SVGElementProxy" (Closed)
Patch Set: Fix double observer unregistration; simplify scope selection; add tests Created 4 years, 1 month 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 14 matching lines...) Expand all
25 #include "platform/geometry/FloatPoint.h" 25 #include "platform/geometry/FloatPoint.h"
26 #include "platform/heap/Handle.h" 26 #include "platform/heap/Handle.h"
27 #include "wtf/Forward.h" 27 #include "wtf/Forward.h"
28 #include "wtf/HashMap.h" 28 #include "wtf/HashMap.h"
29 #include "wtf/HashSet.h" 29 #include "wtf/HashSet.h"
30 #include "wtf/text/AtomicStringHash.h" 30 #include "wtf/text/AtomicStringHash.h"
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class Document; 34 class Document;
35 class Element;
35 class LayoutSVGResourceContainer; 36 class LayoutSVGResourceContainer;
37 class SVGElement;
38 class SVGSVGElement;
36 class SubtreeLayoutScope; 39 class SubtreeLayoutScope;
37 class SVGSVGElement;
38 class SVGElement;
39 class Element;
40 40
41 class SVGDocumentExtensions 41 class SVGDocumentExtensions
42 : public GarbageCollectedFinalized<SVGDocumentExtensions> { 42 : public GarbageCollectedFinalized<SVGDocumentExtensions> {
43 WTF_MAKE_NONCOPYABLE(SVGDocumentExtensions); 43 WTF_MAKE_NONCOPYABLE(SVGDocumentExtensions);
44 44
45 public: 45 public:
46 typedef HeapHashSet<Member<Element>> SVGPendingElements; 46 typedef HeapHashSet<Member<Element>> SVGPendingElements;
47 explicit SVGDocumentExtensions(Document*); 47 explicit SVGDocumentExtensions(Document*);
48 ~SVGDocumentExtensions(); 48 ~SVGDocumentExtensions();
49 49
(...skipping 28 matching lines...) Expand all
78 void startPan(const FloatPoint& start); 78 void startPan(const FloatPoint& start);
79 void updatePan(const FloatPoint& pos) const; 79 void updatePan(const FloatPoint& pos) const;
80 80
81 static SVGSVGElement* rootElement(const Document&); 81 static SVGSVGElement* rootElement(const Document&);
82 SVGSVGElement* rootElement() const; 82 SVGSVGElement* rootElement() const;
83 83
84 DECLARE_TRACE(); 84 DECLARE_TRACE();
85 85
86 private: 86 private:
87 Member<Document> m_document; 87 Member<Document> m_document;
88 // For SVG 1.2 support this will need to be made more general.
89 HeapHashSet<Member<SVGSVGElement>> m_timeContainers; 88 HeapHashSet<Member<SVGSVGElement>> m_timeContainers;
90 using SVGElementSet = HeapHashSet<Member<SVGElement>>; 89 using SVGElementSet = HeapHashSet<Member<SVGElement>>;
91 SVGElementSet m_webAnimationsPendingSVGElements; 90 SVGElementSet m_webAnimationsPendingSVGElements;
92 HashMap<AtomicString, LayoutSVGResourceContainer*> m_resources; 91 HashMap<AtomicString, LayoutSVGResourceContainer*> m_resources;
93 // Resources that are pending. 92 // Resources that are pending.
94 HeapHashMap<AtomicString, Member<SVGPendingElements>> m_pendingResources; 93 HeapHashMap<AtomicString, Member<SVGPendingElements>> m_pendingResources;
95 SVGResourcesCache m_resourcesCache; 94 SVGResourcesCache m_resourcesCache;
96 // Root SVG elements with relative length descendants. 95 // Root SVG elements with relative length descendants.
97 HeapHashSet<Member<SVGSVGElement>> m_relativeLengthSVGRoots; 96 HeapHashSet<Member<SVGSVGElement>> m_relativeLengthSVGRoots;
98 FloatPoint m_translate; 97 FloatPoint m_translate;
(...skipping 13 matching lines...) Expand all
112 void clearHasPendingResourcesIfPossible(Element*); 111 void clearHasPendingResourcesIfPossible(Element*);
113 void removeElementFromPendingResources(Element*); 112 void removeElementFromPendingResources(Element*);
114 SVGPendingElements* removePendingResource(const AtomicString& id); 113 SVGPendingElements* removePendingResource(const AtomicString& id);
115 114
116 void serviceAnimations(); 115 void serviceAnimations();
117 }; 116 };
118 117
119 } // namespace blink 118 } // namespace blink
120 119
121 #endif 120 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/BUILD.gn ('k') | third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698