diff --git a/dom/events/ContentEventHandler.cpp b/dom/events/ContentEventHandler.cpp index ab5ea8df29..547f18f67d 100644 --- a/dom/events/ContentEventHandler.cpp +++ b/dom/events/ContentEventHandler.cpp @@ -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);