Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: Source/WebCore/page/FrameView.cpp

Issue 12310107: Merge 143356 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
« no previous file with comments | « LayoutTests/fast/text-autosizing/unwrappable-inlines-expected.html ('k') | Source/WebCore/page/Settings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698