• eric.carlson@apple.com's avatar
    2009-04-27 Eric Carlson <eric.carlson@apple.com> · 61bc8a6e
    eric.carlson@apple.com authored
            Reviewed by Darin Adler.
    
            <rdar://problem/6822344> Use of QTMovieCurrentSizeAttribute generates exception and will crash
    
            QTMovieCurrentSizeAttribute generates an exception with some versions of QTKit, so calculate a 
            multiplier to scale from natural size to current size when a movie is opened and use that to 
            return the correct value from the naturalSize() method.
    
            * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
            * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
            (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): Initialize m_scaleFactor.
            (WebCore::MediaPlayerPrivate::naturalSize): Return naturalSize transformed by initial scale.
            (WebCore::MediaPlayerPrivate::cacheMovieScale): New, calculate difference between initial
            size and natural size so naturalSize() accounts for non-identity movie matrix.
            (WebCore::MediaPlayerPrivate::updateStates): Call cacheMovieScale when load state reaches
            QTMovieLoadStateLoaded for the first time.
    
    
    
    git-svn-id: svn://svn.chromium.org/blink/trunk@42918 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    61bc8a6e
ChangeLog 3.26 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.