Closed
Bug 515534
Opened 15 years ago
Closed 15 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)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
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•15 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•15 years ago
|
Attachment #400534 -
Flags: review? → review?(bernd_mozilla)
Assignee | ||
Comment 2•15 years ago
|
||
Attachment #400535 -
Flags: review?(bernd_mozilla)
Attachment #400534 -
Flags: review?(bernd_mozilla)
Attachment #400535 -
Flags: review?(bernd_mozilla) → review+
Assignee | ||
Comment 3•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•