Index: Source/WebCore/page/FrameView.cpp |
diff --git a/Source/WebCore/page/FrameView.cpp b/Source/WebCore/page/FrameView.cpp |
index 9849327f69673205e91e6c44ceff46da8320795a..9db2751276283aff1a1135a54628df2ce2892bfd 100644 |
--- a/Source/WebCore/page/FrameView.cpp |
+++ b/Source/WebCore/page/FrameView.cpp |
@@ -68,6 +68,7 @@ |
#include "ScrollingCoordinator.h" |
#include "Settings.h" |
#include "StyleResolver.h" |
+#include "TextAutosizer.h" |
#include "TextResourceDecoder.h" |
#include "TextStream.h" |
@@ -90,10 +91,6 @@ |
#include "TiledBackingStore.h" |
#endif |
-#if ENABLE(TEXT_AUTOSIZING) |
-#include "TextAutosizer.h" |
-#endif |
- |
#if PLATFORM(CHROMIUM) |
#include "TraceEvent.h" |
#endif |
@@ -451,7 +448,6 @@ void FrameView::setFrameRect(const IntRect& newRect) |
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; |
@@ -460,7 +456,6 @@ void FrameView::setFrameRect(const IntRect& newRect) |
m_frame->document()->textAutosizer()->recalculateMultipliers(); |
} |
} |
-#endif |
ScrollView::setFrameRect(newRect); |
@@ -1314,11 +1309,11 @@ void FrameView::layout(bool allowSubtree) |
beginDeferredRepaints(); |
forceLayoutParentViewIfNeeded(); |
root->layout(); |
-#if ENABLE(TEXT_AUTOSIZING) |
+ |
bool autosized = document->textAutosizer()->processSubtree(root); |
if (autosized && root->needsLayout()) |
root->layout(); |
-#endif |
+ |
endDeferredRepaints(); |
m_inLayout = false; |