Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Unified Diff: Source/core/dom/Document.cpp

Issue 215503003: Reland text autosizing changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/resolver/StyleAdjuster.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index c261287510b0cdf90960b72b25b3bcb904b82f6b..c449cc5e0eb9c371a2a08b23134519d2ad385944 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -2069,6 +2069,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.
abarth-chromium 2014/03/31 17:58:48 FTA <-- Please don't use acronyms. Most folks don'
skobes 2014/03/31 18:35:55 Noted, will fix in a follow up patch.
+ if (FastTextAutosizer* textAutosizer = fastTextAutosizer())
+ textAutosizer->updatePageInfo();
+
m_lifecycle.advanceTo(DocumentLifecycle::StyleClean);
}
« no previous file with comments | « Source/core/css/resolver/StyleAdjuster.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698