Closed
Bug 515534
Opened 14 years ago
Closed 14 years ago
Simplify nsTableRowGroupFrame::GetRowCount() / GetStartRowIndex()
Categories
(Core :: Layout: Tables, enhancement)
Core
Layout: Tables
Tracking
()
RESOLVED
FIXED
People
(Reporter: MatsPalmgren_bugz, Assigned: bzbarsky)
Details
Attachments
(2 files)
2.08 KB,
patch
|
Details | Diff | Splinter Review | |
2.09 KB,
patch
|
bernd_mozilla
:
review+
|
Details | Diff | Splinter Review |
Followup from bug 233463 comment 63 -- From Boris Zbarsky (:bz) 2009-08-25 08:54:42 PDT: >+++ b/layout/tables/nsTableRowGroupFrame.cpp > nsTableRowGroupFrame::GetRowCount() I would be pretty happy with this becoming |return mFrames.GetLength()| possibly with some asserts about all the frames having the right display type > PRInt32 nsTableRowGroupFrame::GetStartRowIndex() Again, this could just nix the loop in favor of: if (mFrames.NotEmpty()) { // Assert display of mFrames.FirstChild() result = static_cast<nsTableRowFrame*>(mFrames.FirstChild())->GetRowIndex(); } or some such
![]() |
Assignee | |
Comment 1•14 years ago
|
||
This applies on top of the patch for bug 233463.
Assignee: nobody → bzbarsky
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #400534 -
Flags: review?
![]() |
Assignee | |
Updated•14 years ago
|
Attachment #400534 -
Flags: review? → review?(bernd_mozilla)
![]() |
Assignee | |
Comment 2•14 years ago
|
||
Attachment #400535 -
Flags: review?(bernd_mozilla)
Attachment #400534 -
Flags: review?(bernd_mozilla)
Attachment #400535 -
Flags: review?(bernd_mozilla) → review+
![]() |
Assignee | |
Comment 3•14 years ago
|
||
Pushed http://hg.mozilla.org/mozilla-central/rev/7e9a167a9c7f
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•