Closed
Bug 408024
Opened 17 years ago
Closed 17 years ago
when setting the width of the boxes that hold the description elements, use Math.floor()
Categories
(Firefox :: Address Bar, defect)
Firefox
Address Bar
Tracking
()
RESOLVED
FIXED
Firefox 3 beta3
People
(Reporter: moco, Assigned: moco)
References
Details
when setting the width of the boxes that hold the description elements, use Math.floor() a suggestion from vlad. included in the patch for bug #402118
Assignee | ||
Updated•17 years ago
|
Comment 1•17 years ago
|
||
I'm curious why this is a perf improvement.
Assignee | ||
Comment 2•17 years ago
|
||
When working with vlad, he noticed that the current code was setting widths to values like 526.22 px (instead of 526), and figured it would be better (for layout) to set the minWidth / maxWidth of the scrollboxes (now hboxes) that contain the <description>...<html:span>...</html:span>...</description> content Note, we only end up calling Floor() the first time the richlistitems are created, and again (once per richlistitem) if you resize the window. I'll go isolate just this change and see if I can actually measure the perf gain.
Assignee | ||
Comment 3•17 years ago
|
||
after isolating the Math.floor() change and using https://bugzilla.mozilla.org/attachment.cgi?id=292723 to test, I'm not seeing anything I can consistently measure either way, so I've removed the perf keyword.
Status: NEW → ASSIGNED
Keywords: perf
Assignee | ||
Comment 4•17 years ago
|
||
fixed as part of bug #402118
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•