| 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 f0b52156a097b64d3bc91f5541a8ebd9d36d913d..6d438f18a223c9e2eea2c189a3230301b42a8d10 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -2935,7 +2935,7 @@ void WebViewImpl::computeScaleAndScrollForFocusedNode(Node* focusedNode, bool zo
|
| if (!needAnimation)
|
| return;
|
|
|
| - FloatSize targetViewportSize = visualViewport.size();
|
| + FloatSize targetViewportSize(visualViewport.size());
|
| targetViewportSize.scale(1 / newScale);
|
|
|
| if (textboxRectInDocument.width() <= targetViewportSize.width()) {
|
|
|