summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2020-02-16 16:06:53 +0200
committerwin7-7 <win7-7@users.noreply.github.com>2020-02-16 16:06:53 +0200
commitd4098037a4a6bee464fde4b70644e730e13b487f (patch)
tree60ff499425a2c3acad1c0d66f88aae3a85f2509c /editor
parent4234b3a36b364da2d5dd4f243f2543a9d76057d8 (diff)
downloadUXP-d4098037a4a6bee464fde4b70644e730e13b487f.tar
UXP-d4098037a4a6bee464fde4b70644e730e13b487f.tar.gz
UXP-d4098037a4a6bee464fde4b70644e730e13b487f.tar.lz
UXP-d4098037a4a6bee464fde4b70644e730e13b487f.tar.xz
UXP-d4098037a4a6bee464fde4b70644e730e13b487f.zip
Issue #1355 - Make nsTableCellFrame::GetColIndex/GetRowIndex faster
We can devirtualize it, remove some branches.
Diffstat (limited to 'editor')
-rw-r--r--editor/libeditor/HTMLTableEditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/libeditor/HTMLTableEditor.cpp b/editor/libeditor/HTMLTableEditor.cpp
index 3da0cfe0c..778bf1d2d 100644
--- a/editor/libeditor/HTMLTableEditor.cpp
+++ b/editor/libeditor/HTMLTableEditor.cpp
@@ -2730,8 +2730,8 @@ HTMLEditor::GetCellDataAt(nsIDOMElement* aTable,
}
*aIsSelected = cellFrame->IsSelected();
- cellFrame->GetRowIndex(*aStartRowIndex);
- cellFrame->GetColIndex(*aStartColIndex);
+ *aStartRowIndex = cellFrame->RowIndex();
+ *aStartColIndex = cellFrame->ColIndex();
*aRowSpan = cellFrame->GetRowSpan();
*aColSpan = cellFrame->GetColSpan();
*aActualRowSpan = tableFrame->GetEffectiveRowSpanAt(aRowIndex, aColIndex);