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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2737173002: FontCachePurgePreventer is needed when computing MinPreferredWidth (Closed)
Patch Set: only change WebViewImpl for now Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 753c293cb260a97f1339e69ef3709a3419527fa8..8cc7d34fdd4e19c7c383787aadecacf3ba504892 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -3292,6 +3292,8 @@ WebSize WebViewImpl::ContentsPreferredMinimumSize() {
!document->documentElement()->GetLayoutBox())
return WebSize();
+ // Needed for computing MinPreferredWidth.
+ FontCachePurgePreventer fontCachePurgePreventer;
int width_scaled = document->GetLayoutViewItem()
.MinPreferredLogicalWidth()
.Round(); // Already accounts for zoom.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698