| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 29bedfed385f4fade1598571b65a6635de499ce3..7494410be79be614f9125d9f2638d793b24bcf44 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -113,6 +113,7 @@
|
| #include "core/page/PointerLockController.h"
|
| #include "core/page/ScopedPageLoadDeferrer.h"
|
| #include "core/page/TouchDisambiguation.h"
|
| +#include "core/rendering/FastTextAutosizer.h"
|
| #include "core/rendering/RenderView.h"
|
| #include "core/rendering/RenderWidget.h"
|
| #include "core/rendering/TextAutosizer.h"
|
| @@ -2870,6 +2871,11 @@ void WebViewImpl::updatePageDefinedViewportConstraints(const ViewportDescription
|
| }
|
|
|
| updateMainFrameLayoutSize();
|
| +
|
| + if (LocalFrame* frame = page()->mainFrame()) {
|
| + if (FastTextAutosizer* textAutosizer = frame->document()->fastTextAutosizer())
|
| + textAutosizer->updatePageInfoInAllFrames();
|
| + }
|
| }
|
|
|
| void WebViewImpl::updateMainFrameLayoutSize()
|
| @@ -2888,8 +2894,7 @@ void WebViewImpl::updateMainFrameLayoutSize()
|
|
|
| bool textAutosizingEnabled = page()->settings().textAutosizingEnabled();
|
| if (textAutosizingEnabled && layoutSize.width != view->layoutSize().width()) {
|
| - TextAutosizer* textAutosizer = page()->mainFrame()->document()->textAutosizer();
|
| - if (textAutosizer)
|
| + if (TextAutosizer* textAutosizer = page()->mainFrame()->document()->textAutosizer())
|
| textAutosizer->recalculateMultipliers();
|
| }
|
| }
|
|
|