Commit 7c1d06fb authored by nasko@chromium.org's avatar nasko@chromium.org

Return early from TextAutosizer::updatePageInfo for remote main frame.

BUG=399775

Review URL: https://codereview.chromium.org/637283010

git-svn-id: svn://svn.chromium.org/blink/trunk@184308 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent d68bf519
...@@ -509,6 +509,12 @@ void TextAutosizer::updatePageInfo() ...@@ -509,6 +509,12 @@ void TextAutosizer::updatePageInfo()
RenderView* renderView = m_document->renderView(); RenderView* renderView = m_document->renderView();
bool horizontalWritingMode = isHorizontalWritingMode(renderView->style()->writingMode()); bool horizontalWritingMode = isHorizontalWritingMode(renderView->style()->writingMode());
// FIXME: With out-of-process iframes, the top frame can be remote and
// doesn't have sizing information. Just return if this is the case.
Frame* frame = m_document->frame()->tree().top();
if (frame->isRemoteFrame())
return;
LocalFrame* mainFrame = m_document->page()->deprecatedLocalMainFrame(); LocalFrame* mainFrame = m_document->page()->deprecatedLocalMainFrame();
IntSize frameSize = m_document->settings()->textAutosizingWindowSizeOverride(); IntSize frameSize = m_document->settings()->textAutosizingWindowSizeOverride();
if (frameSize.isEmpty()) if (frameSize.isEmpty())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment