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

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

Issue 2484153003: Use an SVGElementProxy in ReferenceClipPathOperation (Closed)
Patch Set: Rebase; fix comments; findElement 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 // 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 SVGElementProxy_h 5 #ifndef SVGElementProxy_h
6 #define SVGElementProxy_h 6 #define SVGElementProxy_h
7 7
8 #include "core/fetch/DocumentResource.h" 8 #include "core/fetch/DocumentResource.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "wtf/text/AtomicString.h" 10 #include "wtf/text/AtomicString.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 Member<DocumentResource> m_document; 108 Member<DocumentResource> m_document;
109 AtomicString m_id; 109 AtomicString m_id;
110 // URL for resolving references to external resource documents. Contains an 110 // URL for resolving references to external resource documents. Contains an
111 // absolute URL to the resource to load. Cleared when a load has been 111 // absolute URL to the resource to load. Cleared when a load has been
112 // initiated. Ignored if m_isLocal is true. 112 // initiated. Ignored if m_isLocal is true.
113 String m_url; 113 String m_url;
114 bool m_isLocal; 114 bool m_isLocal;
115 }; 115 };
116 116
117 // Collection of SVGElementProxys. This is hosted by elements that can be 117 // Collection of SVGElementProxys. This is hosted by elements that can be
118 // subject to proxies (currently only SVGFilterElement), and is mainly a helper 118 // subject to proxies (see SVGElement::elementProxySet), and is mainly a helper
119 // for dealing with the many-to-one structure of SVGElementProxy. 119 // for dealing with the many-to-one structure of SVGElementProxy.
120 class SVGElementProxySet : public GarbageCollected<SVGElementProxySet> { 120 class SVGElementProxySet : public GarbageCollected<SVGElementProxySet> {
121 public: 121 public:
122 void add(SVGElementProxy&); 122 void add(SVGElementProxy&);
123 bool isEmpty() const; 123 bool isEmpty() const;
124 124
125 // Notify proxy clients that the (content of the) proxied element has 125 // Notify proxy clients that the (content of the) proxied element has
126 // changed. 126 // changed.
127 void notifyContentChanged(TreeScope&); 127 void notifyContentChanged(TreeScope&);
128 128
129 DECLARE_TRACE(); 129 DECLARE_TRACE();
130 130
131 private: 131 private:
132 using ProxySet = HeapHashSet<WeakMember<SVGElementProxy>>; 132 using ProxySet = HeapHashSet<WeakMember<SVGElementProxy>>;
133 ProxySet m_elementProxies; 133 ProxySet m_elementProxies;
134 }; 134 };
135 135
136 } // namespace blink 136 } // namespace blink
137 137
138 #endif // SVGElementProxy_h 138 #endif // SVGElementProxy_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGElementProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698