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

Unified Diff: third_party/WebKit/Source/core/svg/SVGURIReference.h

Issue 2744613002: Use IdTargetObserver in SVGUseElement (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGURIReference.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGURIReference.h
diff --git a/third_party/WebKit/Source/core/svg/SVGURIReference.h b/third_party/WebKit/Source/core/svg/SVGURIReference.h
index 83887b19f24da6065d69b687139e694e84b0a20f..c25314b4fa27dbd562d667a9513f75ac5117e0af 100644
--- a/third_party/WebKit/Source/core/svg/SVGURIReference.h
+++ b/third_party/WebKit/Source/core/svg/SVGURIReference.h
@@ -23,13 +23,13 @@
#include <memory>
#include "core/CoreExport.h"
-#include "core/dom/Document.h"
#include "core/svg/SVGAnimatedHref.h"
#include "platform/heap/Handle.h"
#include "wtf/Functional.h"
namespace blink {
+class Document;
class Element;
class IdTargetObserver;
@@ -61,6 +61,12 @@ class CORE_EXPORT SVGURIReference : public GarbageCollectedMixin {
// |contextElement|.) Will call buildPendingResource() on |contextElement|
// when changes to the 'id' are noticed.
Element* observeTarget(Member<IdTargetObserver>&, SVGElement&);
+ // Create an 'id' observer for |id| in the specified TreeScope. On changes,
+ // the passed Closure will be called.
+ static Element* observeTarget(Member<IdTargetObserver>&,
+ TreeScope&,
+ const AtomicString& id,
+ std::unique_ptr<WTF::Closure>);
// Unregister and destroy the observer.
static void unobserveTarget(Member<IdTargetObserver>&);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGURIReference.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698