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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp

Issue 2202493002: NOT FOR REVIEW: Fullscreen WIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 1 month 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/compositing/PaintLayerCompositor.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
index 06a015ef2c4a8f2bacf9372b1d4ef78b07dbd2e5..7fdf9a801ace7cc456d44d612ddbcb934588daae 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -162,20 +162,15 @@ bool PaintLayerCompositor::preferCompositingToLCDTextEnabled() const {
static LayoutVideo* findFullscreenVideoLayoutObject(Document& document) {
// Recursively find the document that is in fullscreen.
- Element* fullscreenElement = Fullscreen::fullscreenElementFrom(document);
+ Element* fullscreenElement = Fullscreen::fullscreenElement(document);
Document* contentDocument = &document;
while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) {
contentDocument =
toHTMLFrameOwnerElement(fullscreenElement)->contentDocument();
if (!contentDocument)
return nullptr;
- fullscreenElement = Fullscreen::fullscreenElementFrom(*contentDocument);
+ fullscreenElement = Fullscreen::fullscreenElement(*contentDocument);
}
- // Get the current fullscreen element from the document.
- // TODO(foolip): When |currentFullScreenElementFrom| is removed, this will
- // become a no-op and can be removed. https://crbug.com/402421
- fullscreenElement =
- Fullscreen::currentFullScreenElementFrom(*contentDocument);
if (!isHTMLVideoElement(fullscreenElement))
return nullptr;
LayoutObject* layoutObject = fullscreenElement->layoutObject();

Powered by Google App Engine
This is Rietveld 408576698