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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2510353004: Deprecating AutoplayExperimentHelper (Closed)
Patch Set: rebased Created 4 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/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index bc8de18dead2c094a7a51102ceaa2067c82e9a77..eb07ec0dae0d3752b517c29c46dd7b9befe6ea1e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -30,7 +30,6 @@
#include "core/html/HTMLIFrameElement.h"
#include "core/layout/HitTestResult.h"
#include "core/layout/LayoutGeometryMap.h"
-#include "core/layout/LayoutMedia.h"
#include "core/layout/LayoutPart.h"
#include "core/layout/ViewFragmentationContext.h"
#include "core/layout/api/LayoutAPIShim.h"
@@ -989,26 +988,6 @@ void LayoutView::willBeDestroyed() {
m_compositor.reset();
}
-void LayoutView::registerMediaForPositionChangeNotification(
- LayoutMedia& media) {
- if (!m_mediaForPositionNotification.contains(&media))
- m_mediaForPositionNotification.append(&media);
-}
-
-void LayoutView::unregisterMediaForPositionChangeNotification(
- LayoutMedia& media) {
- size_t at = m_mediaForPositionNotification.find(&media);
- if (at != kNotFound)
- m_mediaForPositionNotification.remove(at);
-}
-
-void LayoutView::sendMediaPositionChangeNotifications(
- const IntRect& visibleRect) {
- for (auto& media : m_mediaForPositionNotification) {
- media->notifyPositionMayHaveChanged(visibleRect);
- }
-}
-
void LayoutView::updateFromStyle() {
LayoutBlockFlow::updateFromStyle();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.h ('k') | third_party/WebKit/Source/core/layout/api/LayoutMediaItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698