Changeset 28129 in webkit


Ignore:
Timestamp:
Nov 28, 2007 8:50:24 PM (16 years ago)
Author:
Antti Koivisto
Message:

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):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r28127 r28129  
     12007-11-28  Antti Koivisto  <antti@apple.com>
     2
     3        Reviewed by Oliver.
     4
     5        Make QTMovieView fill color transparent. This behavior matches the specification
     6        (and allows nice alpha blended video).
     7
     8        * platform/graphics/mac/MoviePrivateQTKit.mm:
     9        (WebCore::MoviePrivate::createQTMovieView):
     10
    1112007-11-28  Antti Koivisto  <antti@apple.com>
    212
  • trunk/WebCore/platform/graphics/mac/MoviePrivateQTKit.mm

    r27866 r28129  
    145145    [m_qtMovieView.get() setControllerVisible:NO];
    146146    [m_qtMovieView.get() setPreservesAspectRatio:YES];
     147    // the area not covered by video should be transparent
     148    NSColor* transparent = [NSColor colorWithDeviceRed: 0.0f green: 0.0f blue: 0.0f alpha: 0.0f];
     149    [m_qtMovieView.get() setFillColor:transparent];
    147150    wkQTMovieViewSetDrawSynchronously(m_qtMovieView.get(), YES);
    148151}
Note: See TracChangeset for help on using the changeset viewer.