summaryrefslogtreecommitdiffstats
path: root/layout/tables/nsCellMap.cpp
diff options
context:
space:
mode:
authorMoonchild <git-repo@palemoon.org>2020-02-17 12:40:36 +0100
committerGitHub <noreply@github.com>2020-02-17 12:40:36 +0100
commita4ab3fc59dcd26d527716ae8ed23adf9148cb699 (patch)
treef5c0845fac59471189d20e88617531dcdb1b79dd /layout/tables/nsCellMap.cpp
parente8417acbff563634f11f25461d953b951caac056 (diff)
parentd4098037a4a6bee464fde4b70644e730e13b487f (diff)
downloadUXP-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/nsCellMap.cpp')
-rw-r--r--layout/tables/nsCellMap.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/layout/tables/nsCellMap.cpp b/layout/tables/nsCellMap.cpp
index bdd12cf70..4852a4bdd 100644
--- a/layout/tables/nsCellMap.cpp
+++ b/layout/tables/nsCellMap.cpp
@@ -2431,9 +2431,8 @@ void nsCellMap::Dump(bool aIsBorderCollapse) const
if (cd) {
if (cd->IsOrig()) {
nsTableCellFrame* cellFrame = cd->GetCellFrame();
- int32_t cellFrameColIndex;
- cellFrame->GetColIndex(cellFrameColIndex);
- printf("C%d,%d=%p(%d) ", rIndex, colIndex, (void*)cellFrame,
+ uint32_t cellFrameColIndex = cellFrame->ColIndex();
+ printf("C%d,%d=%p(%u) ", rIndex, colIndex, (void*)cellFrame,
cellFrameColIndex);
cellCount++;
}
@@ -2520,8 +2519,7 @@ nsCellMap::GetCellInfoAt(const nsTableCellMap& aMap,
cellFrame = GetCellFrame(aRowX, aColX, *data, true);
}
if (cellFrame && aColSpan) {
- int32_t initialColIndex;
- cellFrame->GetColIndex(initialColIndex);
+ uint32_t initialColIndex = cellFrame->ColIndex();
*aColSpan = GetEffectiveColSpan(aMap, aRowX, initialColIndex);
}
}