Closed Bug 509525 Opened 15 years ago Closed 15 years ago

Floating the toolbar is really slow.

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
critical

Tracking

(fennec1.0+)

VERIFIED FIXED
Tracking Status
fennec 1.0+ ---

People

(Reporter: dougt, Assigned: vingtetun)

References

Details

Attachments

(1 file, 7 obsolete files)

Removing tryFloatToolbar and tryUnfloatToolbar from browser.js dramatically speed up the pan.  there is a claim that roc has a patch that fixes this performance problem.
Flags: wanted-fennec1.0?
those methods can also call "appendChild" to move the toolbar around, which can be slow.
Attached patch WIP-0.1 (obsolete) — Splinter Review
The original goal of this bug is to remove the appendChild mechanism living in tryFloatToolbar/tryUnfloatToolbar.
Basically it used a 'position: fixed' urlbar.
Comment on attachment 394002 [details] [diff] [review]
WIP-0.1

The patch has some problems, it just a proposal to see if I need to continue in this direction.
Attachment #394002 - Attachment description: Patch v0.1 → WIP-0.1
Attached patch WIP-2 (obsolete) — Splinter Review
Ok, I don't use any top/left hack here.
I Just want stuart feedback on that.
Attachment #394002 - Attachment is obsolete: true
Attached patch WIP-3 (obsolete) — Splinter Review
A little explanation.

When the sidebars are visible this patch turns the urlbar into a fixed element positioned at 0,0. When they are invisible it return to the normal element flow.

The urlbar is container into a box that have the height of the it, so when we position: fixed the urlbar the content browser don't move to the top.

It's my last idea, not sure it is good.
Attachment #394291 - Attachment is obsolete: true
Attached patch Patch v0.1 (obsolete) — Splinter Review
This is not as fast as we want but this has the advantage to remove the appendChild calls.
Attachment #394298 - Attachment is obsolete: true
Attached patch Patch v0.2 (obsolete) — Splinter Review
Finally, I need to add one more box to the hierarchy, otherwise I have a size issue with urlbar-container (not toolbar-container) because the 'position: fixed' rule turned the display of the toolbar-main element into 'block', and in order to work flex need the parent node to have a display of '-moz-box' or '-moz-box-inline', ... so the urlbar-container won't fit the available space but use the size of it's content instead.
Attachment #394374 - Attachment is obsolete: true
Attachment #394423 - Flags: review?
Attached patch Remove the move by a pixel bug (obsolete) — Splinter Review
The move by a pixel bug is related to the display type of the sidebar, it differs depending on the container.

This version correct that.

Theere is also another little pixel bug but I've filled another bug for this one : bug 510488
Attachment #394423 - Attachment is obsolete: true
Attachment #394513 - Flags: review?(pavlov)
Attachment #394423 - Flags: review?(pavlov)
Attached patch Patch v0.2 (obsolete) — Splinter Review
Works better with zoom.
Attachment #394513 - Attachment is obsolete: true
Attachment #394513 - Flags: review?(pavlov)
Attachment #394556 - Flags: review?(pavlov)
Attachment #394556 - Flags: review?(mark.finkle)
Attached patch Patch v0.4Splinter Review
Sorry, for the spam... I've forget to size the height of the container in the previous patch.
Attachment #394556 - Attachment is obsolete: true
Attachment #394572 - Flags: review?(pavlov)
Attachment #394572 - Flags: review?(mark.finkle)
Attachment #394556 - Flags: review?(pavlov)
Attachment #394556 - Flags: review?(mark.finkle)
Attachment #394572 - Flags: review?(pavlov)
Attachment #394572 - Flags: review?(mark.finkle)
Attachment #394572 - Flags: review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
tracking-fennec: --- → ?
Flags: wanted-fennec1.0?
tracking-fennec: ? → 1.0+
how can I verify this bug?
verified with 20090827 winmo nightly trunk by sliding the side bars in and out and the url bar becomes floating.  Should be instantaneous and it is!
Status: RESOLVED → VERIFIED
bugspam
Assignee: nobody → 21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: