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

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: Fix rootMargin parsing Created 5 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/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index e4af2d668ac3ceec0542bae0da93112f749382a7..ce8e61ab25eeae91aa5d6569931311f9bb3a32f4 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 IntersectionObserverRegistry;
class LayoutPoint;
class LiveNodeListBase;
class Locale;
@@ -675,6 +676,11 @@ public:
bool hasMutationObservers() const { return m_mutationObserverTypes; }
void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObserverTypes |= types; }
+ WeakPtrWillBeRawPtr<Document> createWeakPtr();
+
+ IntersectionObserverRegistry* intersectionObserverRegistry();
+ void deliverIntersectionObservationsTimerFired(Timer<Document>*);
+
void updateViewportDescription();
void processReferrerPolicy(const String& policy);
@@ -1327,6 +1333,7 @@ private:
int m_loadEventDelayCount;
Timer<Document> m_loadEventDelayTimer;
Timer<Document> m_pluginLoadingTimer;
+ Timer<Document> m_deliverIntersectionObservationsTimer;
ViewportDescription m_viewportDescription;
ViewportDescription m_legacyViewportDescription;
@@ -1387,6 +1394,8 @@ private:
PersistentWillBeMember<CanvasFontCache> m_canvasFontCache;
+ PersistentWillBeMember<IntersectionObserverRegistry> m_intersectionObserverRegistry;
+
int m_nodeCount;
};

Powered by Google App Engine
This is Rietveld 408576698