mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
Issue #2135 - Bug 1419803: Use GetComposedDoc instead of GetUncomposedDoc in ContentEventHandler
This commit is contained in:
parent
015148fcc3
commit
70d493586d
1 changed files with 2 additions and 2 deletions
|
|
@ -170,11 +170,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue