Closed
Bug 851847
Opened 11 years ago
Closed 11 years ago
Optimize nsBlockFrame::StealFrame when removing a normal flow child
Categories
(Core :: Layout: Block and Inline, defect)
Core
Layout: Block and Inline
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
References
(Blocks 1 open bug)
Details
(Keywords: perf)
Attachments
(1 file)
8.15 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
nsBlockFrame::StealFrame currently does a linear search over all lines (including overflow lines) to find the given child frame. We can optimize this in two ways: first, we now have a hash table for lines that have many (>200) frames - we should use it when available; second, we should test upfront if the given child is an inline or block and then skip lines accordingly.
Assignee | ||
Comment 1•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=346b3251d96e
Attachment #725823 -
Flags: review?(bzbarsky)
Comment 2•11 years ago
|
||
Comment on attachment 725823 [details] [diff] [review] fix r=me
Attachment #725823 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 3•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/85397e0a6dba
Assignee | ||
Comment 4•11 years ago
|
||
Oops, the above changeset had some unrelated changes in it -- backed out.
Assignee | ||
Comment 5•11 years ago
|
||
Landed the right patch this time: https://hg.mozilla.org/integration/mozilla-inbound/rev/a5170d1c3bac
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a5170d1c3bac
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in
before you can comment on or make changes to this bug.
Description
•