Index: Source/WebCore/page/FrameView.cpp |
=================================================================== |
--- Source/WebCore/page/FrameView.cpp (revision 143933) |
+++ Source/WebCore/page/FrameView.cpp (working copy) |
@@ -449,6 +449,17 @@ |
if (newRect == oldRect) |
return; |
+#if ENABLE(TEXT_AUTOSIZING) |
+ // Autosized font sizes depend on the width of the viewing area. |
+ if (newRect.width() != oldRect.width()) { |
+ Page* page = m_frame ? m_frame->page() : 0; |
+ if (page && page->mainFrame() == m_frame && page->settings()->textAutosizingEnabled()) { |
+ for (Frame* frame = page->mainFrame(); frame; frame = frame->tree()->traverseNext()) |
+ m_frame->document()->textAutosizer()->recalculateMultipliers(); |
+ } |
+ } |
+#endif |
+ |
ScrollView::setFrameRect(newRect); |
updateScrollableAreaSet(); |