Index: Source/WebCore/page/Settings.cpp |
=================================================================== |
--- Source/WebCore/page/Settings.cpp (revision 143933) |
+++ Source/WebCore/page/Settings.cpp (working copy) |
@@ -41,6 +41,7 @@ |
#include "PageCache.h" |
#include "ResourceHandle.h" |
#include "StorageMap.h" |
+#include "TextAutosizer.h" |
#include <limits> |
using namespace std; |
@@ -363,6 +364,11 @@ |
void Settings::setTextAutosizingFontScaleFactor(float fontScaleFactor) |
{ |
m_textAutosizingFontScaleFactor = fontScaleFactor; |
+ |
+ // FIXME: I wonder if this needs to traverse frames like in WebViewImpl::resize, or whether there is only one document per Settings instance? |
+ for (Frame* frame = m_page->mainFrame(); frame; frame = frame->tree()->traverseNext()) |
+ frame->document()->textAutosizer()->recalculateMultipliers(); |
+ |
m_page->setNeedsRecalcStyleInAllFrames(); |
} |