Index: Source/WebKit/chromium/src/WebViewImpl.cpp |
=================================================================== |
--- Source/WebKit/chromium/src/WebViewImpl.cpp (revision 140431) |
+++ Source/WebKit/chromium/src/WebViewImpl.cpp (working copy) |
@@ -1128,6 +1128,10 @@ |
// be allowed to manually pinch zoom in further if they desire. |
const float defaultScaleWhenAlreadyLegible = m_minimumPageScaleFactor * doubleTapZoomAlreadyLegibleRatio; |
float legibleScale = deviceScaleFactor(); |
+#if ENABLE(TEXT_AUTOSIZING) |
+ if (page() && page()->settings()) |
+ legibleScale *= page()->settings()->textAutosizingFontScaleFactor(); |
+#endif |
if (legibleScale < defaultScaleWhenAlreadyLegible) |
legibleScale = (scale == m_minimumPageScaleFactor) ? defaultScaleWhenAlreadyLegible : m_minimumPageScaleFactor; |