fix for bug 48624 (hidden selection issues with plain text widgets)
fix for bug 45662 (updating range impl to dom spec) fix for some edge case selection issues invloving multiple windows, no bug # but saari knows about this. r: sfraser, jfrancis, mjudge, saari a: beppe git-svn-id: svn://10.0.0.236/trunk@77040 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2760,7 +2760,7 @@ nsHTMLEditor::GetCellFromRange(nsIDOMRange *aRange, nsIDOMElement **aCell)
|
||||
*aCell = nsnull;
|
||||
|
||||
nsCOMPtr<nsIDOMNode> startParent;
|
||||
nsresult res = aRange->GetStartParent(getter_AddRefs(startParent));
|
||||
nsresult res = aRange->GetStartContainer(getter_AddRefs(startParent));
|
||||
if (NS_FAILED(res)) return res;
|
||||
if (!startParent) return NS_ERROR_FAILURE;
|
||||
|
||||
@@ -2773,7 +2773,7 @@ nsHTMLEditor::GetCellFromRange(nsIDOMRange *aRange, nsIDOMElement **aCell)
|
||||
if (!childNode) return NS_ERROR_FAILURE;
|
||||
|
||||
nsCOMPtr<nsIDOMNode> endParent;
|
||||
res = aRange->GetEndParent(getter_AddRefs(endParent));
|
||||
res = aRange->GetEndContainer(getter_AddRefs(endParent));
|
||||
if (NS_FAILED(res)) return res;
|
||||
if (!startParent) return NS_ERROR_FAILURE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user