| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 5975d51d80a5bee4ce4d586e26ec33523b84eebf..c2ec39d48119305ab083ccdf531c8fcf5cc3dd80 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -1552,17 +1552,22 @@ void WebViewImpl::resize(const WebSize& newSize)
|
| FloatSize(viewportAnchorXCoord, viewportAnchorYCoord));
|
| }
|
|
|
| - updatePageDefinedViewportConstraints(mainFrameImpl()->frame()->document()->viewportDescription());
|
| - updateMainFrameLayoutSize();
|
| + {
|
| + // Avoids unnecessary invalidations while various bits of state in the FTA are updated.
|
| + FastTextAutosizer::DeferUpdatePageInfo deferUpdatePageInfo(page());
|
|
|
| - WebDevToolsAgentPrivate* agentPrivate = devToolsAgentPrivate();
|
| - if (agentPrivate)
|
| - agentPrivate->webViewResized(newSize);
|
| - WebFrameImpl* webFrame = mainFrameImpl();
|
| - if (webFrame->frameView()) {
|
| - webFrame->frameView()->resize(m_size);
|
| - if (page()->settings().pinchVirtualViewportEnabled())
|
| - page()->frameHost().pinchViewport().setViewportSize(m_size);
|
| + updatePageDefinedViewportConstraints(mainFrameImpl()->frame()->document()->viewportDescription());
|
| + updateMainFrameLayoutSize();
|
| +
|
| + WebDevToolsAgentPrivate* agentPrivate = devToolsAgentPrivate();
|
| + if (agentPrivate)
|
| + agentPrivate->webViewResized(newSize);
|
| + WebFrameImpl* webFrame = mainFrameImpl();
|
| + if (webFrame->frameView()) {
|
| + webFrame->frameView()->resize(m_size);
|
| + if (page()->settings().pinchVirtualViewportEnabled())
|
| + page()->frameHost().pinchViewport().setViewportSize(m_size);
|
| + }
|
| }
|
|
|
| if (settings()->viewportEnabled() && !m_fixedLayoutSizeLock) {
|
|
|