2008-11-18 Adele Peterson <adele@apple.com>
authoradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Nov 2008 01:11:01 +0000 (01:11 +0000)
committeradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Nov 2008 01:11:01 +0000 (01:11 +0000)
        Reviewed by John Sullivan.

        Don't fill the view with white if its transparent.

        * WebView.cpp: (WebView::paintIntoBackingStore):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@38587 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/win/ChangeLog
WebKit/win/WebView.cpp

index 4729cbe..97afd73 100644 (file)
@@ -1,3 +1,11 @@
+2008-11-18  Adele Peterson  <adele@apple.com>
+
+        Reviewed by John Sullivan.
+
+        Don't fill the view with white if its transparent.
+        
+        * WebView.cpp: (WebView::paintIntoBackingStore):
+
 2008-11-18  Holger Hans Peter Freyther  <zecke@selfish.org>
 
         Try to fix the Windows build. It is view and not webView.
index fb78178..9ecb205 100644 (file)
@@ -943,7 +943,8 @@ void WebView::paintIntoBackingStore(FrameView* frameView, HDC bitmapDC, const In
     ::ReleaseDC(m_viewWindow, dc);
 #endif
 
-    FillRect(bitmapDC, &rect, (HBRUSH)GetStockObject(WHITE_BRUSH));
+    if (!m_transparent)
+        FillRect(bitmapDC, &rect, (HBRUSH)GetStockObject(WHITE_BRUSH));
     if (frameView && frameView->frame() && frameView->frame()->contentRenderer()) {
         GraphicsContext gc(bitmapDC, m_transparent);
         gc.save();