| 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 7cba355293374fce0d2d1efc0eec62fb296e379a..c9744c5af5e4a1ff042bfd3feb47b03160144c99 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutMedia.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutMedia.cpp
|
| @@ -136,6 +136,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;
|
|
|