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

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

Issue 1548523002: Use Document, rather than document element, for implicit root. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@intersection-observer
Patch Set: Nits, comments, rebaseline 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/ElementIntersectionObserverData.h
diff --git a/third_party/WebKit/Source/core/dom/ElementIntersectionObserverData.h b/third_party/WebKit/Source/core/dom/ElementIntersectionObserverData.h
deleted file mode 100644
index b416f365ac5717580f3e2b65715e098fef4a4f0d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/dom/ElementIntersectionObserverData.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 ElementIntersectionObserverData_h
-#define ElementIntersectionObserverData_h
-
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class Element;
-class IntersectionObservation;
-class IntersectionObserver;
-
-class ElementIntersectionObserverData : public GarbageCollectedFinalized<ElementIntersectionObserverData> {
-public:
- DECLARE_TRACE();
- ElementIntersectionObserverData();
- ~ElementIntersectionObserverData();
-
- bool hasIntersectionObserver() const;
- bool hasIntersectionObservation() const;
- IntersectionObservation* getObservationFor(IntersectionObserver&);
- void addObservation(IntersectionObservation&);
- void removeObservation(IntersectionObserver&);
- void activateValidIntersectionObservers(Element&);
- void deactivateAllIntersectionObservers(Element&);
-
-#if !ENABLE(OILPAN)
- void dispose();
-#endif
-
- WeakPtrWillBeRawPtr<Element> createWeakPtr(Element*);
-
-private:
- // IntersectionObservers for which the Element owning this data is root.
- HeapHashSet<WeakMember<IntersectionObserver>> m_intersectionObservers;
- // IntersectionObservations for which the Element owning this data is target.
- HeapHashMap<Member<IntersectionObserver>, Member<IntersectionObservation>> m_intersectionObservations;
-
-#if !ENABLE(OILPAN)
- OwnPtr<WeakPtrFactory<Element>> m_weakPointerFactory;
-#endif
-};
-
-} // namespace blink
-
-#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