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

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

Issue 2855843002: Reland "Sync requestFullscreen() and exitFullscreen() algorithms with the spec" (Closed)
Patch Set: Reland "Sync requestFullscreen() and exitFullscreen() algorithms with the spec" Created 3 years, 7 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 3c3c8fdd7f0d788628b74b37c19222456a469c47..ede2b7dc1074a7516f9c5500c202ed235761c7b0 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
@@ -409,9 +409,9 @@ void LayoutInline::SplitInlines(LayoutBlockFlow* from_block,
// not its parent. Since the splitting logic expects |this| to be the parent,
// set |beforeChild| to be the LayoutFullScreen.
if (Fullscreen* fullscreen = Fullscreen::FromIfExists(GetDocument())) {
- const Element* full_screen_element = fullscreen->CurrentFullScreenElement();
- if (full_screen_element && before_child &&
- before_child->GetNode() == full_screen_element)
+ const Element* fullscreen_element = fullscreen->FullscreenElement();
+ if (fullscreen_element && before_child &&
+ before_child->GetNode() == fullscreen_element)
before_child = fullscreen->FullScreenLayoutObject();
}

Powered by Google App Engine
This is Rietveld 408576698