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
+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.
[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);
}