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

Side by Side Diff: third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.h

Issue 1740973003: Remove unused NodeIntersectionObserverData predicates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 NodeIntersectionObserverData_h 5 #ifndef NodeIntersectionObserverData_h
6 #define NodeIntersectionObserverData_h 6 #define NodeIntersectionObserverData_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class Node; 12 class Node;
13 class IntersectionObservation; 13 class IntersectionObservation;
14 class IntersectionObserver; 14 class IntersectionObserver;
15 15
16 class NodeIntersectionObserverData : public GarbageCollectedFinalized<NodeInters ectionObserverData> { 16 class NodeIntersectionObserverData : public GarbageCollectedFinalized<NodeInters ectionObserverData> {
17 public: 17 public:
18 DECLARE_TRACE(); 18 DECLARE_TRACE();
19 NodeIntersectionObserverData(); 19 NodeIntersectionObserverData();
20 ~NodeIntersectionObserverData(); 20 ~NodeIntersectionObserverData();
21 21
22 bool hasIntersectionObserver() const;
23 bool hasIntersectionObservation() const;
24 IntersectionObservation* getObservationFor(IntersectionObserver&); 22 IntersectionObservation* getObservationFor(IntersectionObserver&);
25 void addObservation(IntersectionObservation&); 23 void addObservation(IntersectionObservation&);
26 void removeObservation(IntersectionObserver&); 24 void removeObservation(IntersectionObserver&);
27 void activateValidIntersectionObservers(Node&); 25 void activateValidIntersectionObservers(Node&);
28 void deactivateAllIntersectionObservers(Node&); 26 void deactivateAllIntersectionObservers(Node&);
29 27
30 #if !ENABLE(OILPAN) 28 #if !ENABLE(OILPAN)
31 void dispose(); 29 void dispose();
32 #endif 30 #endif
33 31
34 WeakPtrWillBeRawPtr<Node> createWeakPtr(Node*); 32 WeakPtrWillBeRawPtr<Node> createWeakPtr(Node*);
35 33
36 private: 34 private:
37 // IntersectionObservers for which the Node owning this data is root. 35 // IntersectionObservers for which the Node owning this data is root.
38 HeapHashSet<WeakMember<IntersectionObserver>> m_intersectionObservers; 36 HeapHashSet<WeakMember<IntersectionObserver>> m_intersectionObservers;
39 // IntersectionObservations for which the Node owning this data is target. 37 // IntersectionObservations for which the Node owning this data is target.
40 HeapHashMap<Member<IntersectionObserver>, Member<IntersectionObservation>> m _intersectionObservations; 38 HeapHashMap<Member<IntersectionObserver>, Member<IntersectionObservation>> m _intersectionObservations;
41 39
42 #if !ENABLE(OILPAN) 40 #if !ENABLE(OILPAN)
43 OwnPtr<WeakPtrFactory<Node>> m_weakPointerFactory; 41 OwnPtr<WeakPtrFactory<Node>> m_weakPointerFactory;
44 #endif 42 #endif
45 }; 43 };
46 44
47 } // namespace blink 45 } // namespace blink
48 46
49 #endif // NodeIntersectionObserverData_h 47 #endif // NodeIntersectionObserverData_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698