Closed Bug 489225 Opened 16 years ago Closed 16 years ago

Cleanup CanvasBrowser.js

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bcombee, Assigned: bcombee)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Cleanup CanvasBrowser (obsolete) — Splinter Review
While working on the panning indicator patch, I noticed lots of places where CanvasBrowser needs to be brought up to current specs. This is a cleanup patch that doesn't add/remove any functionality. It just does 1) add names to function definitions for better stack traces 2) move member initialization into the constructor for CanvasBrowser instead of having them as members of the prototype object. This is the correct way to set these up -- having data members in prototype is only useful for data shared by all CanvasBrowser instances. 3) add more comments describing how CanvasBrowser members are used My indicators patch will rely on this being committed, so I've marked it as blocking that below.
Attachment #373730 - Flags: review?(mark.finkle)
Flags: wanted-fennec1.0?
Comment on attachment 373730 [details] [diff] [review] Cleanup CanvasBrowser We might want to add scope prefixes to function names, but this is better than no function names.
Attachment #373730 - Flags: review?(mark.finkle) → review+
Attachment #373730 - Attachment is obsolete: true
Attachment #374144 - Flags: review?(mark.finkle)
Attachment #374144 - Flags: review?(mark.finkle) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
verified FIXED on code inspection
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: