| 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 ec6bad08ae71453cc5c87243ecbb1eb4c266616d..1ba695f653116c3c001ae59c7f833f3de8aaba60 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutMedia.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutMedia.cpp
|
| @@ -159,6 +159,11 @@ void LayoutMedia::setRequestPositionUpdates(bool want) {
|
| }
|
|
|
| LayoutUnit LayoutMedia::computePanelWidth(const LayoutRect& mediaRect) const {
|
| + // TODO(mlamouri): we don't know if the main frame has an horizontal scrollbar
|
| + // if it is out of process. See https://crbug.com/662480
|
| + if (document().page()->mainFrame()->isRemoteFrame())
|
| + return mediaRect.width();
|
| +
|
| FrameHost* frameHost = document().frameHost();
|
| LocalFrame* mainFrame = document().page()->deprecatedLocalMainFrame();
|
| FrameView* pageView = mainFrame ? mainFrame->view() : nullptr;
|
|
|