REGRESSION (r170935): WKWebView is always transparent until the first layer tree...
[WebKit-https.git] / Source / WebKit2 / UIProcess / API / Cocoa / WKWebView.mm
index 85c49e966208148937991ba5288a6bbc768e5ec3..e56c0b0d14d79ffda20e855cc3dc5f03e2aaa35f 100644 (file)
@@ -679,6 +679,9 @@ static WebCore::Color scrollViewBackgroundColor(WKWebView *webView)
     else
         color = webView->_page->pageExtendedBackgroundColor();
 
+    if (!color.isValid())
+        color = WebCore::Color::white;
+
     CGFloat zoomScale = contentZoomScale(webView);
     CGFloat minimumZoomScale = [webView->_scrollView minimumZoomScale];
     if (zoomScale < minimumZoomScale) {