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

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

Issue 2401343002: Tracking filter mutation via SVGElementProxy (Closed)
Patch Set: Rebase Created 4 years, 2 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SVGResourceClient_h 5 #ifndef SVGResourceClient_h
6 #define SVGResourceClient_h 6 #define SVGResourceClient_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/fetch/DocumentResource.h"
10 #include "core/svg/SVGFilterElement.h"
11 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
12 10
13 namespace blink { 11 namespace blink {
14 12
15 class Document; 13 class SVGElementProxy;
16 class FilterOperations;
17 14
18 class CORE_EXPORT SVGResourceClient : public DocumentResourceClient { 15 class CORE_EXPORT SVGResourceClient : public GarbageCollectedMixin {
19 USING_PRE_FINALIZER(SVGResourceClient, clearFilterReferences); 16 public:
17 virtual ~SVGResourceClient() {}
20 18
21 public: 19 virtual void resourceContentChanged(SVGElementProxy*) = 0;
22 SVGResourceClient(); 20 virtual void resourceReferenceChanged(SVGElementProxy*) = 0;
pdr. 2016/10/20 03:11:05 Are the SVGElementProxy* arguments needed? Would i
fs 2016/10/20 11:28:00 I guess they aren't strictly needed (yet. Will be
23 ~SVGResourceClient() override;
24 void addFilterReferences(const FilterOperations&, const Document&);
25 void clearFilterReferences();
26 21
27 virtual void filterNeedsInvalidation() = 0; 22 DEFINE_INLINE_VIRTUAL_TRACE() {}
28 23
29 void filterWillBeDestroyed(SVGFilterElement*); 24 protected:
30 25 SVGResourceClient() {}
31 void notifyFinished(Resource*) override;
32 String debugName() const override { return "SVGResourceClient"; }
33
34 DECLARE_TRACE();
35
36 private:
37 HeapHashSet<WeakMember<SVGFilterElement>> m_internalFilterReferences;
38 HeapVector<Member<DocumentResource>> m_externalFilterReferences;
39 }; 26 };
40 27
41 } // namespace blink 28 } // namespace blink
42 29
43 #endif // SVGResourceClient_h 30 #endif // SVGResourceClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698