| Index: Source/core/page/Page.cpp
|
| diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
|
| index efadd7dc49820bcda807659b175e5dbfedecad34..174a7f27a7e6afb0050ba9772f53836421e3923c 100644
|
| --- a/Source/core/page/Page.cpp
|
| +++ b/Source/core/page/Page.cpp
|
| @@ -54,7 +54,6 @@
|
| #include "core/page/scrolling/ScrollingCoordinator.h"
|
| #include "core/rendering/FastTextAutosizer.h"
|
| #include "core/rendering/RenderView.h"
|
| -#include "core/rendering/TextAutosizer.h"
|
| #include "core/storage/StorageNamespace.h"
|
| #include "platform/plugins/PluginData.h"
|
| #include "wtf/HashMap.h"
|
| @@ -520,19 +519,8 @@ void Page::settingsChanged(SettingsDelegate::ChangeType changeType)
|
| case SettingsDelegate::TextAutosizingChange:
|
| if (!mainFrame() || !mainFrame()->isLocalFrame())
|
| break;
|
| - if (FastTextAutosizer* textAutosizer = deprecatedLocalMainFrame()->document()->fastTextAutosizer()) {
|
| + if (FastTextAutosizer* textAutosizer = deprecatedLocalMainFrame()->document()->fastTextAutosizer())
|
| textAutosizer->updatePageInfoInAllFrames();
|
| - } else {
|
| - for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()) {
|
| - if (!frame->isLocalFrame())
|
| - continue;
|
| - if (TextAutosizer* textAutosizer = toLocalFrame(frame)->document()->textAutosizer())
|
| - textAutosizer->recalculateMultipliers();
|
| - }
|
| - // TextAutosizing updates RenderStyle during layout phase (via TextAutosizer::processSubtree).
|
| - // We should invoke setNeedsLayout here.
|
| - setNeedsLayoutInAllFrames();
|
| - }
|
| break;
|
| case SettingsDelegate::ScriptEnableChange:
|
| m_inspectorController->scriptsEnabled(settings().scriptEnabled());
|
|
|