[Chromium] imageSmoothingEnabled should apply to patterns
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Jun 2012 15:17:20 +0000 (15:17 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Jun 2012 15:17:20 +0000 (15:17 +0000)
commitcf5e25104359dbe659b473569d6d7db5b9fa51b8
treed6486cc95bd5c905058c0d492bcc98769c81a40c
parente3b1b926194392c4522b3344e59c86a78987115e
[Chromium] imageSmoothingEnabled should apply to patterns
https://bugs.webkit.org/show_bug.cgi?id=88103

Patch by Keyar Hood <keyar@chromium.org> on 2012-06-06
Reviewed by Stephen White.

Source/WebCore:

Test: fast/canvas/canvas-imageSmoothingEnabled-patterns.html

When drawing patterns on a Canvas, the imageSmoothingEnabled flag is
respected.
* platform/graphics/skia/PlatformContextSkia.cpp:
(WebCore::PlatformContextSkia::setupShader):

LayoutTests:

Added tests for imageSmoothingEnabled flag applying to patterns.

Modified the TestExpectations file as tests are failing due to the new
change. It makes the pictures prettier (and it agrees with other
browsers) so we have decided that the new results are to be considered
correct.
* fast/canvas/canvas-imageSmoothingEnabled-patterns.html: Added.
* platform/chromium-linux/fast/canvas/canvas-imageSmoothingEnabled-patterns-expected.png: Added.
* platform/chromium-linux/fast/canvas/canvas-imageSmoothingEnabled-patterns-expected.txt: Added.
* platform/chromium/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@119591 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/canvas-imageSmoothingEnabled-patterns.html [new file with mode: 0644]
LayoutTests/platform/chromium-linux/fast/canvas/canvas-imageSmoothingEnabled-patterns-expected.png [new file with mode: 0644]
LayoutTests/platform/chromium-linux/fast/canvas/canvas-imageSmoothingEnabled-patterns-expected.txt [new file with mode: 0644]
LayoutTests/platform/chromium/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp