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

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

Issue 2737173002: FontCachePurgePreventer is needed when computing MinPreferredWidth (Closed)
Patch Set: fix mac DCHECK Created 3 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 | « third_party/WebKit/Source/core/layout/ng/ng_block_node.h ('k') | 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 aef52af48e53a6930ce04d0d51d81f56ff3a8fa9..8be130b818fed39af4c25295b9658da8a531e2c9 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -3257,6 +3257,8 @@ WebSize WebViewImpl::contentsPreferredMinimumSize() {
!document->documentElement() || !document->documentElement()->layoutBox())
return WebSize();
+ // Needed for computing minPreferredWidth.
+ FontCachePurgePreventer fontCachePurgePreventer;
int widthScaled = document->layoutViewItem()
.minPreferredLogicalWidth()
.round(); // Already accounts for zoom.
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_block_node.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698