Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index dc167e613183440e9272369d25018eacdcc1eb27..3640d9657aa47199c94438f1bb7b7620588b2137 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -2072,6 +2072,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); |
} |