| Index: third_party/WebKit/Source/core/layout/LayoutMedia.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutMedia.cpp b/third_party/WebKit/Source/core/layout/LayoutMedia.cpp
|
| index e85413688c4df85a8552f5c983d458e03b198e69..9cd13a60e23474c816df8c7bf9342d24f0d312fb 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutMedia.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutMedia.cpp
|
| @@ -164,6 +164,12 @@ LayoutUnit LayoutMedia::computePanelWidth(const LayoutRect& mediaRect) const {
|
| if (document().page()->mainFrame()->isRemoteFrame())
|
| return mediaRect.width();
|
|
|
| + // TODO(foolip): when going fullscreen, the animation sometimes does not clear
|
| + // up properly and the last `absoluteXOffset` received is incorrect. This is
|
| + // a shortcut that we could ideally avoid. See https://crbug.com/663680
|
| + if (mediaElement() && mediaElement()->isFullscreen())
|
| + return mediaRect.width();
|
| +
|
| FrameHost* frameHost = document().frameHost();
|
| LocalFrame* mainFrame = document().page()->deprecatedLocalMainFrame();
|
| FrameView* pageView = mainFrame ? mainFrame->view() : nullptr;
|
|
|