WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
223176
Enable the layout test 2d.path.stroke.scale2.html
https://bugs.webkit.org/show_bug.cgi?id=223176
Summary
Enable the layout test 2d.path.stroke.scale2.html
Said Abou-Hallawa
Reported
2021-03-15 01:36:23 PDT
Created
attachment 423146
[details]
test case This test exists in the following locations: canvas/philip/tests/2d.path.stroke.scale2.html imported/w3c/canvas/2d.path.stroke.scale2.html imported/w3c/web-platform-tests/html/canvas/element/path-objects/2d.path.stroke.scale2.html These layout tests are now fixed on macOS and iOS after enabling GPUP for 2D canvas rendering. The reason is CGPathAddRect() has a bug. Encoding the CGPath converts the rectangle command to moveTo and lineTo commands. In the attached test case, the left canvas is drawn incorrectly if GPUP for 2D canvas rendering is disabled. The right canvas is drawn correctly because the "ctx2.rect()" is preceded by the workaround "ctx2.moveTo()".
Attachments
test case
(1.89 KB, text/html)
2021-03-15 01:36 PDT
,
Said Abou-Hallawa
no flags
Details
test case
(726 bytes, text/html)
2021-03-15 01:37 PDT
,
Said Abou-Hallawa
no flags
Details
Patch
(5.83 KB, patch)
2021-03-15 01:46 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Patch
(7.67 KB, patch)
2021-03-15 11:06 PDT
,
Said Abou-Hallawa
thorton
: review+
Details
Formatted Diff
Diff
Patch
(7.78 KB, patch)
2021-03-15 12:16 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2021-03-15 01:37:55 PDT
Created
attachment 423147
[details]
test case
Said Abou-Hallawa
Comment 2
2021-03-15 01:45:25 PDT
rdar://75419465
is the internal radar which tracks the CGPathAddRect() bug.
Said Abou-Hallawa
Comment 3
2021-03-15 01:46:52 PDT
Created
attachment 423148
[details]
Patch
Said Abou-Hallawa
Comment 4
2021-03-15 11:06:26 PDT
Created
attachment 423202
[details]
Patch
Tim Horton
Comment 5
2021-03-15 12:02:09 PDT
Comment on
attachment 423202
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=423202&action=review
> LayoutTests/ChangeLog:9 > + 2D canvas rendering. The reason is CGPathAddRect() has a bug. Encoding
Did you file a bug about the bug you discovered?
Said Abou-Hallawa
Comment 6
2021-03-15 12:08:30 PDT
Comment on
attachment 423202
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=423202&action=review
>> LayoutTests/ChangeLog:9 >> + 2D canvas rendering. The reason is CGPathAddRect() has a bug. Encoding > > Did you file a bug about the bug you discovered?
yes it is
rdar://75419465
. I will update the change log to include it.
Said Abou-Hallawa
Comment 7
2021-03-15 12:16:34 PDT
Created
attachment 423217
[details]
Patch
EWS
Comment 8
2021-03-15 13:11:52 PDT
Committed
r274434
: <
https://commits.webkit.org/r274434
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 423217
[details]
.
Radar WebKit Bug Importer
Comment 9
2021-03-15 13:12:15 PDT
<
rdar://problem/75443379
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug