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

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

Issue 2573773002: Sync requestFullscreen() and exitFullscreen() algorithms with the spec (Closed)
Patch Set: address feedback 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/LayoutInline.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
index 7e8f2d7cc5cb804a9223ceafe91e357213d5585d..93cb1049042d5770ec013cbe7b1509472dd0652f 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->currentFullScreenElement();
- if (fullScreenElement && beforeChild &&
- beforeChild->node() == fullScreenElement)
+ const Element* fullscreenElement = fullscreen->fullscreenElement();
+ if (fullscreenElement && beforeChild &&
+ beforeChild->node() == fullscreenElement)
beforeChild = fullscreen->fullScreenLayoutObject();
}

Powered by Google App Engine
This is Rietveld 408576698