diff options
author | win7-7 <win7-7@users.noreply.github.com> | 2020-02-16 16:06:53 +0200 |
---|---|---|
committer | win7-7 <win7-7@users.noreply.github.com> | 2020-02-16 16:06:53 +0200 |
commit | d4098037a4a6bee464fde4b70644e730e13b487f (patch) | |
tree | 60ff499425a2c3acad1c0d66f88aae3a85f2509c /editor | |
parent | 4234b3a36b364da2d5dd4f243f2543a9d76057d8 (diff) | |
download | uxp-d4098037a4a6bee464fde4b70644e730e13b487f.tar.gz |
Issue #1355 - Make nsTableCellFrame::GetColIndex/GetRowIndex faster
We can devirtualize it, remove some branches.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/libeditor/HTMLTableEditor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/libeditor/HTMLTableEditor.cpp b/editor/libeditor/HTMLTableEditor.cpp index 3da0cfe0c8..778bf1d2da 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); |