SVGImageForContainer::imageForCurrentFrame() needs to account for zoom
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}
Showing
7.08 KB