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)

defect
Not set
normal

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
Depends on: 402118
Keywords: perf
Target Milestone: --- → Firefox 3 M11
I'm curious why this is a perf improvement.
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.
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
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.