Closed Bug 1409162 Opened 7 years ago Closed 7 years ago

Speed up nsTableColFrame::GetColIndex

Categories

(Core :: Layout: Tables, enhancement, P3)

53 Branch
enhancement

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox57 --- wontfix
firefox58 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file, 2 obsolete files)

We can devirtualize it, remove some branches, etc.
Attachment #8919038 - Flags: review?(mats)
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #8919067 - Flags: review?(mats)
Attachment #8919038 - Attachment is obsolete: true
Attachment #8919038 - Flags: review?(mats)
Comment on attachment 8919067 [details] [diff] [review] Make nsTableCellFrame::GetColIndex/GetRowIndex faster >+ // XXXbz Do we really need to query, or can we assume we have a cellframe >+ // here? >+ return do_QueryFrame(mContent->GetPrimaryFrame()); This is a11y code, so I don't think we need to micro-optimize the code to the level where do_QueryFrame would matter. (Note that in the common case here do_QueryFrame is non-virtual anyway (since bug 1364815)). So I suggest you leave out this code comment.
Attachment #8919067 - Flags: review?(mats) → review+
Attachment #8919067 - Attachment is obsolete: true
Attachment #8919104 - Flags: review?(mats)
Priority: -- → P3
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/2ccbc0a2df1d Make nsTableCellFrame::GetColIndex/GetRowIndex faster. r=mats
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: