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

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

Issue 1449623002: IntersectionObserver: second cut. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Clarify the tear-down path for observers and observations. Created 5 years, 1 month 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/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 617b7e5741828fd0ef740f5171ce83529501fe60..462c266f6d600c29107fbedeab25b914a84713de 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -126,6 +126,7 @@ class HitTestRequest;
class IdleRequestCallback;
class IdleRequestOptions;
class InputDeviceCapabilities;
+class IntersectionObservationRegistry;
class LayoutPoint;
class LiveNodeListBase;
class Locale;
@@ -675,6 +676,11 @@ public:
bool hasMutationObservers() const { return m_mutationObserverTypes; }
void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObserverTypes |= types; }
+ WeakPtr<Document> createWeakPtr();
+
+ IntersectionObservationRegistry* intersectionObservationRegistry();
+ void deliverIntersectionObservationsTimerFired(Timer<Document>*);
+
void updateViewportDescription();
void processReferrerPolicy(const String& policy);
@@ -1330,6 +1336,7 @@ private:
int m_loadEventDelayCount;
Timer<Document> m_loadEventDelayTimer;
Timer<Document> m_pluginLoadingTimer;
+ Timer<Document> m_deliverIntersectionObservationsTimer;
ViewportDescription m_viewportDescription;
ViewportDescription m_legacyViewportDescription;
@@ -1390,6 +1397,9 @@ private:
PersistentWillBeMember<CanvasFontCache> m_canvasFontCache;
+ OwnPtrWillBeMember<IntersectionObservationRegistry> m_intersectionObservationRegistry;
+ OwnPtrWillBeMember<WeakPtrFactory<Document>> m_weakPointerFactory;
+
int m_nodeCount;
};

Powered by Google App Engine
This is Rietveld 408576698