Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 1bd554bbe5db9a68d8d9713027d2200e44a82e83..f5570ec8b29417754c399b433efed2727b51e369 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -2042,6 +2042,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); |
} |