Closed Bug 1198657 Opened 9 years ago Closed 9 years ago

Remove unnecessary minimized statusbar width update

Categories

(Firefox OS Graveyard :: Gaia::System::Status bar, Utility tray, Notification, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: ting, Unassigned)

References

Details

I can see two _updateMinimizedStatusbarWidth() invocations when launch an app, one from handling |hierarchytopmostwindowchanged| and one from handling |appopened|.

The first invocation gets different numbers of _minimizedStatusbarWidth in each launch which probably becasue the openning window is enlarging, and the 2nd one will get usual number (~ half screen width).

The first one is unnecessary, we can avoid it (and getBoundingClientRect()).

Also maybe we can skip _updateIconVisibility() in _updateMinimizedStatusbarWidth() if the width is not changed.
True (and looking forward to get rid of it!), but I wouldn't spend much time on this. All the minimized/maximized logic is going to go away on bug 1179723. It would be nice if you can give a try to that patch and provide some performance feedback! :)
Flags: needinfo?(janus926)
Great! Thanks for the info, I'll try the patch.

Note for my self: _updateIconVisibility() is done twice when handle |appopened|, one from resumeUpdate(), one from _updateMinimizedStatusbarWidth().
Flags: needinfo?(janus926)
Oops, I didn't see patch in bug 1179723?
Depends on: 1179723
No longer depends on: 1179723
No longer valid as bug 1179723 is just landed.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.