mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 898321 - Return success from nsTableEditor::GetCellAt if frame not found; r=ehsan
Adjusted by Aryeh Gregor for review comments.
This commit is contained in:
parent
8527258e66
commit
d35c184925
@ -2724,8 +2724,10 @@ nsHTMLEditor::GetCellAt(nsIDOMElement* aTable, int32_t aRowIndex, int32_t aColIn
|
||||
}
|
||||
|
||||
nsTableOuterFrame* tableFrame = GetTableFrame(aTable);
|
||||
if (!tableFrame)
|
||||
return NS_ERROR_FAILURE;
|
||||
if (!tableFrame) {
|
||||
*aCell = nullptr;
|
||||
return NS_EDITOR_ELEMENT_NOT_FOUND;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMElement> domCell =
|
||||
do_QueryInterface(tableFrame->GetCellAt(aRowIndex, aColIndex));
|
||||
|
Loading…
Reference in New Issue
Block a user