Closed Bug 1294607 Opened 9 years ago Closed 9 years ago

Remove redundant EnsureTarget in CanvasRenderingContext2D

Categories

(Core :: Graphics: Canvas2D, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: ethlin, Assigned: ethlin)

Details

Attachments

(1 file, 1 obsolete file)

Some functions call EnsureTarget twice. I think we can remove them.
Attached patch Remove EnsureTarget. (obsolete) — Splinter Review
DrawWindow and PutImageData_explicit have two EnsureTarget. I removed the second one in this patch.
Attachment #8780369 - Flags: review?(nical.bugzilla)
Attachment #8780369 - Flags: review?(nical.bugzilla) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/6493296521fb Remove unnecessary EnsureTarget in CanvasRenderingContext2D. r=nical
Keywords: checkin-needed
I should keep the second EnsureTarget in the DrawWindows.
Attachment #8780369 - Attachment is obsolete: true
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/44ec827b73e9 Remove unnecessary EnsureTarget in CanvasRenderingContext2D. r=nical
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: