| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 5975d51d80a5bee4ce4d586e26ec33523b84eebf..a13a00c1f5328cf08572e2cc2291c1776e3e1df8 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -113,7 +113,6 @@
|
| #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"
|
| @@ -2864,11 +2863,6 @@ void WebViewImpl::updatePageDefinedViewportConstraints(const ViewportDescription
|
| }
|
|
|
| updateMainFrameLayoutSize();
|
| -
|
| - if (LocalFrame* frame = page()->mainFrame()) {
|
| - if (FastTextAutosizer* textAutosizer = frame->document()->fastTextAutosizer())
|
| - textAutosizer->updatePageInfoInAllFrames();
|
| - }
|
| }
|
|
|
| void WebViewImpl::updateMainFrameLayoutSize()
|
| @@ -2887,7 +2881,8 @@ void WebViewImpl::updateMainFrameLayoutSize()
|
|
|
| bool textAutosizingEnabled = page()->settings().textAutosizingEnabled();
|
| if (textAutosizingEnabled && layoutSize.width != view->layoutSize().width()) {
|
| - if (TextAutosizer* textAutosizer = page()->mainFrame()->document()->textAutosizer())
|
| + TextAutosizer* textAutosizer = page()->mainFrame()->document()->textAutosizer();
|
| + if (textAutosizer)
|
| textAutosizer->recalculateMultipliers();
|
| }
|
| }
|
|
|