Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index 4bf08a4e79bb04b5f000e42c22ce68c24262bf4d..4820c319e34448e46e21b79ef703341fff09be8b 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -379,13 +379,15 @@ void FrameView::setFrameRect(const IntRect& newRect) |
// Autosized font sizes depend on the width of the viewing area. |
if (newRect.width() != oldRect.width()) { |
- Page* page = m_frame->page(); |
- bool textAutosizingEnabled = InspectorInstrumentation::overrideTextAutosizing(page, page->settings().textAutosizingEnabled()); |
- if (isMainFrame() && textAutosizingEnabled) { |
- TextAutosizer* textAutosizer = m_frame->document()->textAutosizer(); |
- if (textAutosizer) { |
- for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().traverseNext()) |
- textAutosizer->recalculateMultipliers(); |
+ if (isMainFrame()) { |
+ Page* page = m_frame->page(); |
+ bool textAutosizingEnabled = InspectorInstrumentation::overrideTextAutosizing(page, page->settings().textAutosizingEnabled()); |
+ if (textAutosizingEnabled) { |
+ TextAutosizer* textAutosizer = m_frame->document()->textAutosizer(); |
+ if (textAutosizer) { |
+ for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().traverseNext()) |
+ textAutosizer->recalculateMultipliers(); |
+ } |
} |
} |
} |