зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1419803 - Use GetComposedDoc instead of GetUncomposedDoc in ContentEventHandler. r=smaug
This commit is contained in:
Родитель
d480d5e221
Коммит
dd9a9b8c68
|
@ -309,11 +309,11 @@ ContentEventHandler::InitRootContent(Selection* aNormalSelection)
|
|||
}
|
||||
|
||||
// See bug 537041 comment 5, the range could have removed node.
|
||||
if (NS_WARN_IF(startNode->GetUncomposedDoc() != mPresShell->GetDocument())) {
|
||||
if (NS_WARN_IF(startNode->GetComposedDoc() != mPresShell->GetDocument())) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_ASSERTION(startNode->GetUncomposedDoc() == endNode->GetUncomposedDoc(),
|
||||
NS_ASSERTION(startNode->GetComposedDoc() == endNode->GetComposedDoc(),
|
||||
"firstNormalSelectionRange crosses the document boundary");
|
||||
|
||||
mRootContent = startNode->GetSelectionRootContent(mPresShell);
|
||||
|
|
Загрузка…
Ссылка в новой задаче