forked from WebKit/WebKit-http
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chromium] Refactor the computation of resampled bitmap size in
drawImage and drawPattern. https://bugs.webkit.org/show_bug.cgi?id=92408 Reviewed by Adrienne Walker. Source/WebCore: We used to have a special-purpose function called TransformDimensions() which did pretty much the same thing as SkRect::mapRect() does. This change unifies the drawPattern code to use mapRect() in the same way that drawImage() does. Covered by existing tests, e.g., fast/backgrounds/size/*. * platform/graphics/skia/ImageSkia.cpp: (WebCore): (WebCore::Image::drawPattern): Note: we're now doing using the original (float) source rect, and converting to int only after applying the matrix transform. This might result in different decisions about resampling mode, but it's more correct anyway. LayoutTests: Mark a test as expected to fail (will need rebaseline). * platform/chromium/TestExpectations: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
052e3f0
commit fcda600
Showing
4 changed files
with
43 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters