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

Unified Diff: third_party/WebKit/Source/core/dom/ElementIntersectionObserverData.h

Issue 2553343004: IntersectionObserver: use nullptr for implicit root. (Closed)
Patch Set: rebase Created 4 years 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
Index: third_party/WebKit/Source/core/dom/ElementIntersectionObserverData.h
diff --git a/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.h b/third_party/WebKit/Source/core/dom/ElementIntersectionObserverData.h
similarity index 76%
rename from third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.h
rename to third_party/WebKit/Source/core/dom/ElementIntersectionObserverData.h
index 0bf1dc041dbee5fe4b6e8662bb466f0eb5e5f9df..e9647e95e633a487dd9ad7d91f39af74171edc9e 100644
--- a/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.h
+++ b/third_party/WebKit/Source/core/dom/ElementIntersectionObserverData.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NodeIntersectionObserverData_h
-#define NodeIntersectionObserverData_h
+#ifndef ElementIntersectionObserverData_h
+#define ElementIntersectionObserverData_h
#include "bindings/core/v8/ScriptWrappable.h"
#include "bindings/core/v8/TraceWrapperMember.h"
@@ -15,13 +15,15 @@ class Node;
class IntersectionObservation;
class IntersectionObserver;
-class NodeIntersectionObserverData
- : public GarbageCollected<NodeIntersectionObserverData>,
+class ElementIntersectionObserverData
+ : public GarbageCollected<ElementIntersectionObserverData>,
public TraceWrapperBase {
public:
- NodeIntersectionObserverData();
+ ElementIntersectionObserverData();
IntersectionObservation* getObservationFor(IntersectionObserver&);
+ void addObserver(IntersectionObserver&);
+ void removeObserver(IntersectionObserver&);
void addObservation(IntersectionObservation&);
void removeObservation(IntersectionObserver&);
void activateValidIntersectionObservers(Node&);
@@ -41,4 +43,4 @@ class NodeIntersectionObserverData
} // namespace blink
-#endif // NodeIntersectionObserverData_h
+#endif // ElementIntersectionObserverData_h
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/ElementIntersectionObserverData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698