diff options
author | Moonchild <git-repo@palemoon.org> | 2020-02-17 12:40:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 12:40:36 +0100 |
commit | a4ab3fc59dcd26d527716ae8ed23adf9148cb699 (patch) | |
tree | f5c0845fac59471189d20e88617531dcdb1b79dd /layout/tables/nsTableRowGroupFrame.cpp | |
parent | e8417acbff563634f11f25461d953b951caac056 (diff) | |
parent | d4098037a4a6bee464fde4b70644e730e13b487f (diff) | |
download | UXP-a4ab3fc59dcd26d527716ae8ed23adf9148cb699.tar UXP-a4ab3fc59dcd26d527716ae8ed23adf9148cb699.tar.gz UXP-a4ab3fc59dcd26d527716ae8ed23adf9148cb699.tar.lz UXP-a4ab3fc59dcd26d527716ae8ed23adf9148cb699.tar.xz UXP-a4ab3fc59dcd26d527716ae8ed23adf9148cb699.zip |
Merge pull request #1447 from win7-7/optimization-4-pr
Speed up nsTableColFrame::GetColIndex
Diffstat (limited to 'layout/tables/nsTableRowGroupFrame.cpp')
-rw-r--r-- | layout/tables/nsTableRowGroupFrame.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/layout/tables/nsTableRowGroupFrame.cpp b/layout/tables/nsTableRowGroupFrame.cpp index f613c8b79..37f577f5c 100644 --- a/layout/tables/nsTableRowGroupFrame.cpp +++ b/layout/tables/nsTableRowGroupFrame.cpp @@ -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); } } |