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

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

Issue 1552213002: Implement suspend/resume for IntersectionObserver notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@intersection-observer
Patch Set: Create IntersectionObserverController on demand 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/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index b0a7d6840732c2405363ac2f822c1367ee20aece..7b68c8dd8cf13d314a80354bda77fd244b747848 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5069,10 +5069,15 @@ WeakPtrWillBeRawPtr<Document> Document::createWeakPtr()
#endif
}
+IntersectionObserverController* Document::intersectionObserverController()
+{
+ return m_intersectionObserverController;
+}
+
IntersectionObserverController& Document::ensureIntersectionObserverController()
{
if (!m_intersectionObserverController)
- m_intersectionObserverController = new IntersectionObserverController();
+ m_intersectionObserverController = IntersectionObserverController::create(this);
return *m_intersectionObserverController;
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/IntersectionObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698