WebKit:
[WebKit-https.git] / WebKit / WebView.subproj / WebHTMLView.m
index b81f1b166bfdd8a1fa9947a6c630bac74a2b6b3c..5b51990735b4b7e9fcf11d1e63508f79e26a8d42 100644 (file)
@@ -1268,6 +1268,16 @@ static WebHTMLView *lastHitView = nil;
 
 #endif
 
+- (BOOL)_transparentBackground
+{
+    return _private->transparentBackground;
+}
+
+- (void)_setTransparentBackground:(BOOL)f
+{
+    _private->transparentBackground = f;
+}
+
 @end
 
 @implementation NSView (WebHTMLViewFileInternal)
@@ -1973,7 +1983,7 @@ static WebHTMLView *lastHitView = nil;
             [textRendererFactoryIfCoalescing startCoalesceTextDrawing];
         }
 
-        if (![[self _webView] drawsBackground]) {
+        if (![self _transparentBackground]) {
             [[NSColor clearColor] set];
             NSRectFill (rect);
         }