| 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();
|
| }
|
|
|
|
|