Reviewed by John.
[WebKit-https.git] / WebKit / WebView.subproj / WebFrameView.m
index f8de5e86a675e31238b11298abef00c1a31d749d..4c31390ac29b02ce0d0d3462c4b7825a31751ba0 100644 (file)
@@ -432,8 +432,10 @@ static NSMutableDictionary *viewTypes;
 {
     if ([self documentView] == nil) {
         // Need to paint ourselves if there's no documentView to do it instead.
-        [[NSColor whiteColor] set];
-        NSRectFill(rect);
+        if ([[self _webView] drawsBackground]) {
+            [[NSColor whiteColor] set];
+            NSRectFill(rect);
+        }
     } else {
 #ifndef NDEBUG
         if ([[self _scrollView] drawsBackground]) {