Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index 92175fd6a8a5a120555b88b7b169f7b5fecd4e28..277b441dd141453c8480fcbe24fa508ff3942497 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -83,7 +83,6 @@ |
#include "core/rendering/FastTextAutosizer.h" |
#include "core/rendering/RenderView.h" |
#include "core/rendering/RenderWidget.h" |
-#include "core/rendering/TextAutosizer.h" |
#include "core/rendering/compositing/RenderLayerCompositor.h" |
#include "modules/device_orientation/DeviceOrientationInspectorAgent.h" |
#include "modules/encryptedmedia/MediaKeysController.h" |
@@ -3073,16 +3072,9 @@ void WebViewImpl::updateMainFrameLayoutSize() |
WebSize layoutSize = m_size; |
- if (settings()->viewportEnabled()) { |
+ if (settings()->viewportEnabled()) |
layoutSize = flooredIntSize(m_pageScaleConstraintsSet.pageDefinedConstraints().layoutSize); |
- bool textAutosizingEnabled = page()->settings().textAutosizingEnabled(); |
- if (textAutosizingEnabled && layoutSize.width != view->layoutSize().width()) { |
- if (TextAutosizer* textAutosizer = page()->deprecatedLocalMainFrame()->document()->textAutosizer()) |
- textAutosizer->recalculateMultipliers(); |
- } |
- } |
- |
view->setLayoutSize(layoutSize); |
} |