Closed Bug 586712 Opened 15 years ago Closed 15 years ago

Lighten tabOnFocus (and rename it)

Categories

(Firefox Graveyard :: Panorama, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 4.0b5

People

(Reporter: iangilman, Assigned: raymondlee)

References

Details

(Keywords: perf)

Attachments

(1 file, 2 obsolete files)

From dolske's review of bug 574217: > >+ // Called when the user switches from one tab to another outside of the TabView UI. > >+ tabOnFocus: function(tab) { > > This seems like a surprising amount of code to be running on each tab selection > change... Is there an opportunity for an early return / skipping work when not > needed (eg, set a dirty bit and handle it later)? > > [Nit: call this tabOnSelect, because it really doesn't have anything to do with > _focus_.] Some of this work we definitely need to do every time. In particular, the "zoom prep" is the only way we've found to get a smooth zoom out. Some of it can probably be deferred if we're not in the Tab Candy UI.
Some of this may be helped when we get hardware acceleration. Of course, it also might not.
Blocks: 586788
Whiteboard: b4
Priority: -- → P3
Mass moving all Tab Candy bugs from Mozilla Labs to Firefox::Tab Candy. Filter the bugmail spam with "tabcandymassmove".
Product: Mozilla Labs → Firefox
Target Milestone: -- → ---
Assignee: nobody → raymond
Attached patch v1 (obsolete) — Splinter Review
Attachment #466568 - Flags: review?(dolske)
Attachment #466568 - Flags: feedback?(ian)
Blocks: 586424
Keywords: perf
QA Contact: tabcandy → tabcandy
Comment on attachment 466568 [details] [diff] [review] v1 I found a bug in this patch. Will upload another one later
Attachment #466568 - Attachment is obsolete: true
Attachment #466568 - Flags: review?(dolske)
Attachment #466568 - Flags: feedback?(ian)
Attached patch v1 (obsolete) — Splinter Review
I've renamed the method and everything inside the method is necessary. GroupItems.updateActiveGroupItemAndTabBar(newItem) is for setting the active group item and updating the tab bar because zooming into a tab, using key combination, the switch to tab feature in the awesome bar might select a tab in other group. Other code is for setting zoom in preparation.
Attachment #466635 - Flags: review?(dolske)
Attachment #466635 - Flags: feedback?(ian)
Comment on attachment 466635 [details] [diff] [review] v1 Looks good to me.
Attachment #466635 - Flags: feedback?(ian) → feedback+
No longer blocks: 586424
Attachment #466635 - Flags: review?(dolske)
Attachment #466635 - Flags: review+
Attachment #466635 - Flags: approval2.0+
Keywords: checkin-needed
Check-in needed
Attachment #466635 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: b4
Target Milestone: --- → Firefox 4.0b5
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: