mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #1355 - Make nsTableCellFrame::GetColIndex/GetRowIndex faster
We can devirtualize it, remove some branches.
This commit is contained in:
parent
bcbf8e8983
commit
e8bb5560f7
12 changed files with 106 additions and 152 deletions
|
|
@ -137,8 +137,7 @@ nsTableRowGroupFrame::InitRepeatedFrame(nsTableRowGroupFrame* aHeaderFooterFrame
|
|||
while (copyCellFrame && originalCellFrame) {
|
||||
NS_ASSERTION(originalCellFrame->GetContent() == copyCellFrame->GetContent(),
|
||||
"cell frames have different content");
|
||||
int32_t colIndex;
|
||||
originalCellFrame->GetColIndex(colIndex);
|
||||
uint32_t colIndex = originalCellFrame->ColIndex();
|
||||
copyCellFrame->SetColIndex(colIndex);
|
||||
|
||||
// Move to the next cell frame
|
||||
|
|
@ -998,8 +997,7 @@ nsTableRowGroupFrame::SplitSpanningCells(nsPresContext& aPresContext,
|
|||
nsTableCellFrame* contCell = static_cast<nsTableCellFrame*>(
|
||||
aPresContext.PresShell()->FrameConstructor()->
|
||||
CreateContinuingFrame(&aPresContext, cell, &aLastRow));
|
||||
int32_t colIndex;
|
||||
cell->GetColIndex(colIndex);
|
||||
uint32_t colIndex = cell->ColIndex();
|
||||
aContRow->InsertCellFrame(contCell, colIndex);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue