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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 1329853004: Include viewport visibility checks for autoplay experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@autoplay_step1
Patch Set: Rebased onto merged blink repo. Created 5 years, 3 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/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index d27feb25d9efcfc466580789bf8518fade265c11..4d91158ca970894047046617a0c4494d31022e33 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2448,6 +2448,11 @@ void FrameView::updateLifecyclePhasesInternal(LifeCycleUpdateOption phases, cons
ASSERT(!view->hasPendingSelection());
ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationClean
|| (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && lifecycle().state() == DocumentLifecycle::CompositingForSlimmingPaintV2Clean));
+
+ // Temporary callback for crbug.com/487345,402044
+ // TODO(ojan): Make this more general to be used by PositionObserver
+ // and rAF throttling.
+ view->sendMediaPositionChangeNotifications();
}
}
}

Powered by Google App Engine
This is Rietveld 408576698