Closed Bug 1502023 Opened 6 years ago Closed 6 years ago

canvas.js::clearRect doesn't work with transformation matrices

Categories

(DevTools :: Inspector, defect, P2)

defect

Tracking

(firefox65 fixed)

RESOLVED FIXED
Firefox 65
Tracking Status
firefox65 --- fixed

People

(Reporter: miker, Assigned: miker)

References

Details

Attachments

(3 files)

Attached image Broken.gif
      No description provided.
We call the following from flexbox.js.

clearRect(this.ctx, 8, 2, 81, 113, this.currentMatrix);

This **should** clear a section of the canvas taking any transforms into account.

Because of the way canvas.js::clearRect() is written it **always** draws an upright rectangle regardless of any transforms (see attachment 9019998 [details]).

With the attached path this issue is fixed (see attachment 9019999 [details]).
Priority: -- → P2
Pushed by mratcliffe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8cdaa33486f4
canvas.js::clearRect doesn't work with transformation matrices r=gl
https://hg.mozilla.org/mozilla-central/rev/8cdaa33486f4
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: