Closed Bug 885452 Opened 11 years ago Closed 11 years ago

Remove retrieveToolbarIconsizesFromTheme now that we only support one icon size

Categories

(Firefox :: Theme, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 28

People

(Reporter: MattN, Assigned: mconley)

References

Details

(Keywords: addon-compat, perf, Whiteboard: [Australis:M8])

Attachments

(1 file)

retrieveToolbarIconsizesFromTheme shows up fairly high in JS profiles of browser startup. I suspect it can be simplified to avoid calls to getComputedStyle now that we only support a single toolbar icon size (bug 863299). Since we don't provide UI to switch the icon size, I think 3rd-party themes can make icons larger with CSS if they desire. If an extension wants to put the functionality back, they can implement this function and call it upon during browser initialization.

I'm going to do a try push to see its effect on tspaint_places_generated_*.
Try push commenting out retrieveToolbarIconsizesFromTheme: https://tbpl.mozilla.org/?tree=Try&rev=13a5fa73decc
It seems like this has negligible effect on tspaint_places_generated_* unfortunately. I guess it's not too much of surprise given that the running time was 0.1% in the profiler. It's still unnecessary work which we should remove if possible.
No longer blocks: australis-ts
Assignee: mnoorenberghe+bmo → mconley
Attached patch Patch v1Splinter Review
Attachment #769127 - Flags: review?(jaws)
Keywords: addon-compat
Summary: Consider removing retrieveToolbarIconsizesFromTheme now that we only support one icon size → Remove retrieveToolbarIconsizesFromTheme now that we only support one icon size
Marked addon-compat, because it's possible that some add-ons call this to deal with iconsize glitches.
Attachment #769127 - Flags: review?(jaws) → review+
Landed on UX as https://hg.mozilla.org/projects/ux/rev/f3d225d45859
Whiteboard: [Australis:M8][fixed-in-ux]
Removing extra blocking bug since bug 863299 was already blocking australis-cust.
No longer blocks: australis-cust
https://hg.mozilla.org/mozilla-central/rev/f3d225d45859
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:M8][fixed-in-ux] → [Australis:M8]
Target Milestone: --- → Firefox 28
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: