Closed
Bug 509525
Opened 15 years ago
Closed 15 years ago
Floating the toolbar is really slow.
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(fennec1.0+)
VERIFIED
FIXED
Tracking | Status | |
---|---|---|
fennec | 1.0+ | --- |
People
(Reporter: dougt, Assigned: vingtetun)
References
Details
Attachments
(1 file, 7 obsolete files)
13.61 KB,
patch
|
pavlov
:
review+
pavlov
:
review+
|
Details | Diff | Splinter Review |
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?
Comment 1•15 years ago
|
||
those methods can also call "appendChild" to move the toolbar around, which can be slow.
Assignee | ||
Comment 2•15 years ago
|
||
The original goal of this bug is to remove the appendChild mechanism living in tryFloatToolbar/tryUnfloatToolbar. Basically it used a 'position: fixed' urlbar.
Assignee | ||
Comment 3•15 years ago
|
||
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
Assignee | ||
Comment 4•15 years ago
|
||
Ok, I don't use any top/left hack here. I Just want stuart feedback on that.
Attachment #394002 -
Attachment is obsolete: true
Assignee | ||
Comment 5•15 years ago
|
||
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
Assignee | ||
Comment 6•15 years ago
|
||
This is not as fast as we want but this has the advantage to remove the appendChild calls.
Attachment #394298 -
Attachment is obsolete: true
Assignee | ||
Comment 7•15 years ago
|
||
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?
Assignee | ||
Updated•15 years ago
|
Attachment #394423 -
Flags: review? → review?(pavlov)
Assignee | ||
Comment 8•15 years ago
|
||
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)
Assignee | ||
Comment 9•15 years ago
|
||
Works better with zoom.
Attachment #394513 -
Attachment is obsolete: true
Attachment #394513 -
Flags: review?(pavlov)
Assignee | ||
Updated•15 years ago
|
Attachment #394556 -
Flags: review?(pavlov)
Attachment #394556 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 10•15 years ago
|
||
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)
Updated•15 years ago
|
Attachment #394572 -
Flags: review?(pavlov)
Attachment #394572 -
Flags: review?(mark.finkle)
Attachment #394572 -
Flags: review+
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•15 years ago
|
tracking-fennec: --- → ?
Flags: wanted-fennec1.0?
Updated•15 years ago
|
tracking-fennec: ? → 1.0+
Comment 11•15 years ago
|
||
how can I verify this bug?
Comment 12•15 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•