| 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 c760a81f73fe1a734e7fc5822a9c6502269d0cdd..f508e8175d6d8df3ecc87585c3ee08ec608dd55c 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -3023,6 +3023,12 @@ WebFloatPoint WebViewImpl::pinchViewportOffset() const
|
| return visualViewportOffset();
|
| }
|
|
|
| +WebFloatSize WebViewImpl::visualViewportSize() const
|
| +{
|
| + ASSERT(page());
|
| + return page()->frameHost().visualViewport().visibleRect().size();
|
| +}
|
| +
|
| void WebViewImpl::scrollAndRescaleViewports(float scaleFactor,
|
| const IntPoint& mainFrameOrigin,
|
| const FloatPoint& visualViewportOrigin)
|
|
|