| Index: Source/core/rendering/FastTextAutosizer.cpp
|
| diff --git a/Source/core/rendering/FastTextAutosizer.cpp b/Source/core/rendering/FastTextAutosizer.cpp
|
| index 42dd9d945ebf4e49c7ef3665422e88fa5a61f302..d60ff6dbe9e97a31d1fc9d64e658c76fd5f827c4 100644
|
| --- a/Source/core/rendering/FastTextAutosizer.cpp
|
| +++ b/Source/core/rendering/FastTextAutosizer.cpp
|
| @@ -488,8 +488,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();
|
| }
|
| }
|
|
|