WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
161089
Add support for CanvasRenderingContext2D.resetTransform()
https://bugs.webkit.org/show_bug.cgi?id=161089
Summary
Add support for CanvasRenderingContext2D.resetTransform()
Chris Dumez
Reported
2016-08-23 10:04:08 PDT
Add support for CanvasRenderingContext2D.resetTransform(): -
https://html.spec.whatwg.org/#dom-context-2d-resettransform
Firefox and Chrome already support this.
Attachments
Patch
(9.85 KB, patch)
2016-08-23 10:06 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews122 for ios-simulator-elcapitan-wk2
(612.23 KB, application/zip)
2016-08-23 11:29 PDT
,
Build Bot
no flags
Details
Patch
(17.39 KB, patch)
2016-08-23 16:08 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-08-23 10:06:21 PDT
Created
attachment 286724
[details]
Patch
Simon Fraser (smfr)
Comment 2
2016-08-23 11:01:08 PDT
Comment on
attachment 286724
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=286724&action=review
> LayoutTests/imported/w3c/ChangeLog:11 > + * web-platform-tests/2dcontext/transformations/canvas_transformations_reset_001-expected.html: Added. > + * web-platform-tests/2dcontext/transformations/canvas_transformations_reset_001.html: Added. > + Import W3C test to cover CanvasRenderingContext2D.resetTransform(). > +
Would be nice to have a test that tests this across save/restore.
Build Bot
Comment 3
2016-08-23 11:29:47 PDT
Comment on
attachment 286724
[details]
Patch
Attachment 286724
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/1928645
New failing tests: imported/w3c/web-platform-tests/2dcontext/transformations/canvas_transformations_reset_001.html
Build Bot
Comment 4
2016-08-23 11:29:51 PDT
Created
attachment 286748
[details]
Archive of layout-test-results from ews122 for ios-simulator-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-elcapitan-wk2 Platform: Mac OS X 10.11.5
Said Abou-Hallawa
Comment 5
2016-08-23 11:58:51 PDT
Comment on
attachment 286724
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=286724&action=review
> Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:821 > if (!ctm.isInvertible())
Can't we use if (!state().hasInvertibleTransform) instead?
Chris Dumez
Comment 6
2016-08-23 12:07:58 PDT
(In reply to
comment #5
)
> Comment on
attachment 286724
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=286724&action=review
> > > Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:821 > > if (!ctm.isInvertible()) > > Can't we use if (!state().hasInvertibleTransform) instead?
I have merely moved the existing code but I will check.
Said Abou-Hallawa
Comment 7
2016-08-23 14:38:28 PDT
Comment on
attachment 286724
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=286724&action=review
>>> Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:821 >>> if (!ctm.isInvertible()) >> >> Can't we use if (!state().hasInvertibleTransform) instead? > > I have merely moved the existing code but I will check.
state().hasInvertibleTransform is a cached value for state().isInvertible() since the later is an expensive operation.
Chris Dumez
Comment 8
2016-08-23 16:08:02 PDT
Created
attachment 286799
[details]
Patch
WebKit Commit Bot
Comment 9
2016-08-23 19:14:53 PDT
Comment on
attachment 286799
[details]
Patch Clearing flags on attachment: 286799 Committed
r204878
: <
http://trac.webkit.org/changeset/204878
>
WebKit Commit Bot
Comment 10
2016-08-23 19:15:01 PDT
All reviewed patches have been landed. Closing bug.
Anne van Kesteren
Comment 11
2024-09-03 11:37:16 PDT
***
Bug 149988
has been marked as a duplicate of this bug. ***
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