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

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

Issue 1580783003: Revert of Use Document, rather than document element, for implicit root. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@intersection-observer
Patch Set: Created 4 years, 11 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
Index: third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.h
diff --git a/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.h b/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.h
deleted file mode 100644
index 80faa6105470dd58ed8478bc45d6f61945e3811b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// 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
-
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class Node;
-class IntersectionObservation;
-class IntersectionObserver;
-
-class NodeIntersectionObserverData : public GarbageCollectedFinalized<NodeIntersectionObserverData> {
-public:
- DECLARE_TRACE();
- NodeIntersectionObserverData();
- ~NodeIntersectionObserverData();
-
- bool hasIntersectionObserver() const;
- bool hasIntersectionObservation() const;
- IntersectionObservation* getObservationFor(IntersectionObserver&);
- void addObservation(IntersectionObservation&);
- void removeObservation(IntersectionObserver&);
- void activateValidIntersectionObservers(Node&);
- void deactivateAllIntersectionObservers(Node&);
-
-#if !ENABLE(OILPAN)
- void dispose();
-#endif
-
- WeakPtrWillBeRawPtr<Node> createWeakPtr(Node*);
-
-private:
- // IntersectionObservers for which the Node owning this data is root.
- HeapHashSet<WeakMember<IntersectionObserver>> m_intersectionObservers;
- // IntersectionObservations for which the Node owning this data is target.
- HeapHashMap<Member<IntersectionObserver>, Member<IntersectionObservation>> m_intersectionObservations;
-
-#if !ENABLE(OILPAN)
- OwnPtr<WeakPtrFactory<Node>> m_weakPointerFactory;
-#endif
-};
-
-} // namespace blink
-
-#endif // NodeIntersectionObserverData_h

Powered by Google App Engine
This is Rietveld 408576698