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. |