[Cairo] Canvas: Path::clear should clear its transform
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Jan 2018 11:41:18 +0000 (11:41 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Jan 2018 11:41:18 +0000 (11:41 +0000)
commitdc268bfcc03d0d2269611dfa372d460c844fde30
tree16bca164a98f6bd06a0eebfe7e58b8693c6c33e1
parent687c7eee8b1607ba85aefa685b765c06d5cf0d7b
[Cairo] Canvas: Path::clear should clear its transform
https://bugs.webkit.org/show_bug.cgi?id=181320

Patch by Fujii Hironori <Hironori.Fujii@sony.com> on 2018-01-05
Reviewed by Carlos Garcia Campos.

Source/WebCore:

Path of Cairo port has its cairo context. Path::clear() didn't
clear the transform matrix of the context.

Test: fast/canvas/reset-scaling-by-height-change.html

* platform/graphics/cairo/PathCairo.cpp:
(WebCore::Path::clear): Reset the transform matrix of Path.

LayoutTests:

* fast/canvas/reset-scaling-by-height-change-expected.txt: Added.
* fast/canvas/reset-scaling-by-height-change.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/reset-scaling-by-height-change-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/reset-scaling-by-height-change.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cairo/PathCairo.cpp