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/IntersectionObserverController.cpp

Issue 1613543002: Use DOMHighResTimeStamp for notification time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: syntax error in test 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/IntersectionObserverController.cpp
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp b/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
index 021063299732761cc5f6d860e1c40634a624ad44..54b4c177b4277abb98f7e6efa50204a55644e337 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
@@ -61,10 +61,8 @@ void IntersectionObserverController::deliverIntersectionObservations(Timer<Inter
void IntersectionObserverController::computeTrackedIntersectionObservations()
{
- // TODO(szager): Need to define timestamp.
- double timestamp = currentTime();
for (auto& observer : m_trackedIntersectionObservers) {
- observer->computeIntersectionObservations(timestamp);
+ observer->computeIntersectionObservations();
if (observer->hasEntries())
scheduleIntersectionObserverForDelivery(*observer);
}

Powered by Google App Engine
This is Rietveld 408576698