• fmalita's avatar
    SVGImageForContainer::imageForCurrentFrame() needs to account for zoom · 8e623735
    fmalita authored
    SVGImageForContainer tracks a container zoom factor independently of
    the actual container size.  This zoom factor needs to be accounted for
    in imageForCurrentFrame() -- otherwise we end up producing an SkImage
    with a different size than reported by SVGImageForContainer::size().
    
    The easiest way to accomplish this is to use size() when calling
    SVGImage::imageForCurrentFrameForContainer(), instead of the unzoomed
    m_containerSize.
    
    BUG=643623
    R=fs@opera.com,davve@opera.com
    
    Review-Url: https://codereview.chromium.org/2323853002
    Cr-Commit-Position: refs/heads/master@{#417504}
    8e623735
background-svg-scaling-zoom.html 1.07 KB