• eric.carlson@apple.com's avatar
    2009-04-28 Eric Carlson <eric.carlson@apple.com> · 9a3fd3d3
    eric.carlson@apple.com authored
            Reviewed by Adam Roben
            
            <rdar://problem/6769968> media/video-size-intrinsic-scale.html fails on Windows
            https://bugs.webkit.org/show_bug.cgi?id=25094
            
            Display movies saved with a non-identity matrix at the correct size.
    
            * platform/graphics/win/QTMovieWin.cpp:
            (QTMovieWinPrivate::QTMovieWinPrivate): Initialize m_widthScaleFactor and m_heightScaleFactor.
            (QTMovieWinPrivate::cacheMovieScale): New, calculate difference between initial
            size and natural size so naturalSize() accounts for non-identity movie matrix.
            (QTMovieWinPrivate::task):Call cacheMovieScale when load state reaches
            kMovieLoadStateLoaded for the first time. kMovieLoadState -> QTMovieLoadState.
            (QTMovieWinPrivate::drawingComplete): kMovieLoadState -> QTMovieLoadState.
            (QTMovieWinPrivate::createGWorld): Don't bother creating gworld until load state reaches
            kMovieLoadStateLoaded because we do not try to draw it before that point.
            (QTMovieWinPrivate::setSize): Do not change movie box before reaching kMovieLoadStateLoaded
            because we need to get the movie's initial size in cacheMovieScale.
            (QTMovieWin::getNaturalSize): Multiply width and height by initial scale.
    
    2009-04-28  Eric Carlson  <eric.carlson@apple.com>
    
            Reviewed by Adam Roben
    
            <rdar://problem/6769968> media/video-size-intrinsic-scale.html fails on Windows
            https://bugs.webkit.org/show_bug.cgi?id=25094
    
            * platform/win/Skipped: Re-enable video-size-intrinsic-scale.html.
    
    
    
    git-svn-id: svn://svn.chromium.org/blink/trunk@42939 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    9a3fd3d3
ChangeLog 1.01 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.