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

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: Make Controller an ActiveDOMObject 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..d6e89d0f337c3a9a663e65692a73b0c78d51430a 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5072,7 +5072,7 @@ WeakPtrWillBeRawPtr<Document> Document::createWeakPtr()
IntersectionObserverController& Document::ensureIntersectionObserverController()
{
if (!m_intersectionObserverController)
- m_intersectionObserverController = new IntersectionObserverController();
+ m_intersectionObserverController = IntersectionObserverController::create(this);
return *m_intersectionObserverController;
}

Powered by Google App Engine
This is Rietveld 408576698