Chromium Code Reviews| Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
| index 6f75a156113a454ed6709f14b16412825f297e50..d7df1f0644b92a2c30d3937bf0f40d3684bed0f4 100644 |
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
| @@ -1296,8 +1296,8 @@ WebRect WebViewImpl::WidenRectWithinPageBounds(const WebRect& source, |
| if (MainFrame()) |
| max_size = MainFrame()->ContentsSize(); |
| IntSize scroll_offset; |
| - if (MainFrame()) |
| - scroll_offset = MainFrame()->GetScrollOffset(); |
| + if (MainFrame() && MainFrame()->IsWebLocalFrame()) |
| + scroll_offset = MainFrame()->ToWebLocalFrame()->GetScrollOffset(); |
|
dcheng
2017/06/16 00:03:41
Ditto.
Łukasz Anforowicz
2017/06/16 21:28:13
Done.
|
| int left_margin = target_margin; |
| int right_margin = target_margin; |