зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1408049 - Remove an unneeded call to nsINode::IndexOf() from EditorBase::BeginningOfDocument(); r=masayuki
This commit is contained in:
Родитель
807fcbf2b1
Коммит
16c54559ca
|
@ -1117,8 +1117,9 @@ EditorBase::BeginningOfDocument()
|
|||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
||||
int32_t offsetInParent = parent->IndexOf(firstNode);
|
||||
return selection->Collapse(parent, offsetInParent);
|
||||
MOZ_ASSERT(parent->IndexOf(firstNode) == 0,
|
||||
"How come the first node isn't the left most child in its parent?");
|
||||
return selection->Collapse(parent, 0);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче