| Index: Source/core/rendering/FastTextAutosizer.cpp
|
| diff --git a/Source/core/rendering/FastTextAutosizer.cpp b/Source/core/rendering/FastTextAutosizer.cpp
|
| index 97039c667df51feb4e0390daae391468451d2115..4de9ad058ce016f7950c5bafb1a8d4c6f5f1454f 100644
|
| --- a/Source/core/rendering/FastTextAutosizer.cpp
|
| +++ b/Source/core/rendering/FastTextAutosizer.cpp
|
| @@ -476,8 +476,10 @@ void FastTextAutosizer::updatePageInfoInAllFrames()
|
| {
|
| ASSERT(!m_document->frame() || m_document->frame()->isMainFrame());
|
|
|
| - for (LocalFrame* frame = m_document->frame(); frame; frame = frame->tree().traverseNext()) {
|
| - if (FastTextAutosizer* textAutosizer = frame->document()->fastTextAutosizer())
|
| + for (Frame* frame = m_document->frame(); frame; frame = frame->tree().traverseNext()) {
|
| + if (!frame->isLocalFrame())
|
| + continue;
|
| + if (FastTextAutosizer* textAutosizer = toLocalFrame(frame)->document()->fastTextAutosizer())
|
| textAutosizer->updatePageInfo();
|
| }
|
| }
|
|
|