зеркало из https://github.com/mozilla/gecko-dev.git
bug fix (no #) for GetPriorNode/GetNextNode
This commit is contained in:
Родитель
08211a7951
Коммит
5638b8ea91
|
@ -2533,7 +2533,7 @@ nsEditor::GetPriorNode(nsIDOMNode *aParentNode,
|
|||
// and want the deep-right child.
|
||||
else
|
||||
{
|
||||
result = GetRightmostChild(*aResultNode, aResultNode);
|
||||
result = GetRightmostChild(aParentNode, aResultNode);
|
||||
if (NS_FAILED(result)) return result;
|
||||
if (!aEditableNode) return result;
|
||||
if (IsEditable(*aResultNode)) return result;
|
||||
|
@ -2564,7 +2564,7 @@ nsEditor::GetNextNode(nsIDOMNode *aParentNode,
|
|||
nsCOMPtr<nsIDOMNode> child = GetChildAt(aParentNode, aOffset);
|
||||
if (child)
|
||||
{
|
||||
result = GetLeftmostChild(*aResultNode, aResultNode);
|
||||
result = GetLeftmostChild(aParentNode, aResultNode);
|
||||
if (NS_FAILED(result)) return result;
|
||||
if (!aEditableNode) return result;
|
||||
if (IsEditable(*aResultNode)) return result;
|
||||
|
|
|
@ -2533,7 +2533,7 @@ nsEditor::GetPriorNode(nsIDOMNode *aParentNode,
|
|||
// and want the deep-right child.
|
||||
else
|
||||
{
|
||||
result = GetRightmostChild(*aResultNode, aResultNode);
|
||||
result = GetRightmostChild(aParentNode, aResultNode);
|
||||
if (NS_FAILED(result)) return result;
|
||||
if (!aEditableNode) return result;
|
||||
if (IsEditable(*aResultNode)) return result;
|
||||
|
@ -2564,7 +2564,7 @@ nsEditor::GetNextNode(nsIDOMNode *aParentNode,
|
|||
nsCOMPtr<nsIDOMNode> child = GetChildAt(aParentNode, aOffset);
|
||||
if (child)
|
||||
{
|
||||
result = GetLeftmostChild(*aResultNode, aResultNode);
|
||||
result = GetLeftmostChild(aParentNode, aResultNode);
|
||||
if (NS_FAILED(result)) return result;
|
||||
if (!aEditableNode) return result;
|
||||
if (IsEditable(*aResultNode)) return result;
|
||||
|
|
Загрузка…
Ссылка в новой задаче