зеркало из https://github.com/mozilla/pjs.git
179384 Merging blocks via forward delete sends selection to front of document
correcting snafu from prior landing.
This commit is contained in:
Родитель
e48869f9a2
Коммит
06b859a4a9
|
@ -319,7 +319,6 @@ nsRangeUpdater::SelAdjDeleteNode(nsIDOMNode *aNode)
|
||||||
item->startOffset--;
|
item->startOffset--;
|
||||||
if ((item->endNode.get() == parent) && (item->endOffset > offset))
|
if ((item->endNode.get() == parent) && (item->endOffset > offset))
|
||||||
item->endOffset--;
|
item->endOffset--;
|
||||||
}
|
|
||||||
|
|
||||||
// check for range endpoints that are in aNode
|
// check for range endpoints that are in aNode
|
||||||
if (item->startNode == aNode)
|
if (item->startNode == aNode)
|
||||||
|
@ -348,7 +347,7 @@ nsRangeUpdater::SelAdjDeleteNode(nsIDOMNode *aNode)
|
||||||
item->endNode = parent;
|
item->endNode = parent;
|
||||||
item->endOffset = offset;
|
item->endOffset = offset;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче