X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebCore%2Fplatform%2Fgraphics%2Fmac%2FMoviePrivateQTKit.mm;h=09f1f32cdc4c7d1744f1e4b2d9d96848f4133f21;hp=5f5616718aa7c6637ada99d993081bcf213f43ed;hb=574fe9c68f03e4f6cd3701d4be3472b5ad81a1e5;hpb=b8b3be5dd6176bf5cc28460f90067133921736e8;ds=inline diff --git a/WebCore/platform/graphics/mac/MoviePrivateQTKit.mm b/WebCore/platform/graphics/mac/MoviePrivateQTKit.mm index 5f5616718aa7..09f1f32cdc4c 100644 --- a/WebCore/platform/graphics/mac/MoviePrivateQTKit.mm +++ b/WebCore/platform/graphics/mac/MoviePrivateQTKit.mm @@ -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); }