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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2143973005: [Layout API] Use layoutViewItem() in HTMLMediaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 5a63b92a411057bd6934052df59836e6eadb1078..0ee5dbe2d47f5185acb0b3508880e05c409374a3 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -62,8 +62,8 @@
#include "core/html/track/VideoTrackList.h"
#include "core/inspector/ConsoleMessage.h"
#include "core/layout/LayoutVideo.h"
-#include "core/layout/LayoutView.h"
#include "core/layout/api/LayoutMediaItem.h"
+#include "core/layout/api/LayoutViewItem.h"
#include "core/layout/compositing/PaintLayerCompositor.h"
#include "core/loader/FrameLoader.h"
#include "core/loader/FrameLoaderClient.h"
@@ -3302,7 +3302,7 @@ void HTMLMediaElement::didBecomeFullscreenElement()
// Cache this in case the player is destroyed before leaving fullscreen.
m_inOverlayFullscreenVideo = usesOverlayFullscreenVideo();
if (m_inOverlayFullscreenVideo)
- document().layoutView()->compositor()->setNeedsCompositingUpdate(CompositingUpdateRebuildTree);
+ document().layoutViewItem().compositor()->setNeedsCompositingUpdate(CompositingUpdateRebuildTree);
}
void HTMLMediaElement::willStopBeingFullscreenElement()
@@ -3312,7 +3312,7 @@ void HTMLMediaElement::willStopBeingFullscreenElement()
if (webMediaPlayer())
webMediaPlayer()->exitedFullscreen();
if (m_inOverlayFullscreenVideo)
- document().layoutView()->compositor()->setNeedsCompositingUpdate(CompositingUpdateRebuildTree);
+ document().layoutViewItem().compositor()->setNeedsCompositingUpdate(CompositingUpdateRebuildTree);
m_inOverlayFullscreenVideo = false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698