| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 6f5ee837e20c5594cdda7a88ed3bc229aee9b541..4363cc4f4c6cdd66992ba1bd0abe03cb10708894 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -2047,6 +2047,10 @@ void Document::attach(const AttachContext& context)
|
|
|
| ContainerNode::attach(context);
|
|
|
| + // FTA can't update render view info while the Document is detached, so update now in case anything changed.
|
| + if (FastTextAutosizer* textAutosizer = fastTextAutosizer())
|
| + textAutosizer->updatePageInfo();
|
| +
|
| m_lifecycle.advanceTo(DocumentLifecycle::StyleClean);
|
| }
|
|
|
|
|