summaryrefslogtreecommitdiff
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
commit1479b6ff88d7e82511ff7f90fed34bcef7c527d0 (patch)
tree60ff499425a2c3acad1c0d66f88aae3a85f2509c /editor
parent649af355373534afb1f129616c78b54b621c6612 (diff)
downloadaura-central-1479b6ff88d7e82511ff7f90fed34bcef7c527d0.tar.gz
Issue mcp-graveyard/UXP%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);