Reviewed by Oliver.
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2007 04:50:24 +0000 (04:50 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2007 04:50:24 +0000 (04:50 +0000)
        Make QTMovieView fill color transparent. This behavior matches the specification
        (and allows nice alpha blended video).

        * platform/graphics/mac/MoviePrivateQTKit.mm:
        (WebCore::MoviePrivate::createQTMovieView):

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

WebCore/ChangeLog
WebCore/platform/graphics/mac/MoviePrivateQTKit.mm

index 1e76f01b9afb8160d70f03d03dd470f89f561b45..f8a91a12d47cb5370b7b2f424adc3e5cdce9323c 100644 (file)
@@ -1,3 +1,13 @@
+2007-11-28  Antti Koivisto  <antti@apple.com>
+
+        Reviewed by Oliver.
+
+        Make QTMovieView fill color transparent. This behavior matches the specification
+        (and allows nice alpha blended video).
+
+        * platform/graphics/mac/MoviePrivateQTKit.mm:
+        (WebCore::MoviePrivate::createQTMovieView):
+
 2007-11-28  Antti Koivisto  <antti@apple.com>
 
         Reviewed by Darin.
index 5f5616718aa7c6637ada99d993081bcf213f43ed..09f1f32cdc4c7d1744f1e4b2d9d96848f4133f21 100644 (file)
@@ -144,6 +144,9 @@ void MoviePrivate::createQTMovieView()
     [m_qtMovieView.get() setMovie:m_qtMovie.get()];
     [m_qtMovieView.get() setControllerVisible:NO];
     [m_qtMovieView.get() setPreservesAspectRatio:YES];
+    // the area not covered by video should be transparent
+    NSColor* transparent = [NSColor colorWithDeviceRed: 0.0f green: 0.0f blue: 0.0f alpha: 0.0f];
+    [m_qtMovieView.get() setFillColor:transparent];
     wkQTMovieViewSetDrawSynchronously(m_qtMovieView.get(), YES);
 }