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

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

Issue 2654083006: Revert of Sync requestFullscreen() and exitFullscreen() algorithms with the spec (Closed)
Patch Set: add failing test expectations Created 3 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/layout/LayoutInline.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
index 4b1b406c97e6e0a0808e6fafd877eb10c29d79d0..1e9173c2b78273dd22c98e71d32ffa7bb6c1cd35 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
@@ -402,9 +402,9 @@ void LayoutInline::splitInlines(LayoutBlockFlow* fromBlock,
// not its parent. Since the splitting logic expects |this| to be the parent,
// set |beforeChild| to be the LayoutFullScreen.
if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document())) {
- const Element* fullscreenElement = fullscreen->fullscreenElement();
- if (fullscreenElement && beforeChild &&
- beforeChild->node() == fullscreenElement)
+ const Element* fullScreenElement = fullscreen->currentFullScreenElement();
+ if (fullScreenElement && beforeChild &&
+ beforeChild->node() == fullScreenElement)
beforeChild = fullscreen->fullScreenLayoutObject();
}

Powered by Google App Engine
This is Rietveld 408576698