Reviewed by John.
[WebKit-https.git] / WebKit / WebView.subproj / WebImageView.m
index eb2138e2b64fbd2ec22e056d168d4c006144f482..5bc790d56b6736f7e66b9a139d3c6a1d9a90d055 100644 (file)
         [self layout];
     }
     
-    [[NSColor whiteColor] set];
-    NSRectFill(rect);
+    if ([[self _webView] drawsBackground]) {
+        [[NSColor whiteColor] set];
+        NSRectFill(rect);
+    }
     
     NSRect drawingRect = [self drawingRect];
     [[rep image] drawImageInRect:drawingRect fromRect:drawingRect];