зеркало из https://github.com/mozilla/pjs.git
Fix bug 255236 (composer confused by broken nextSibling on textnodes). Patch
by Peter Van der Beken <peterv@propagandism.org>, r+sr=bzbarsky, a=shaver
This commit is contained in:
Родитель
b998901ada
Коммит
08c8f548fd
|
@ -165,13 +165,13 @@ nsGenericDOMDataNode::GetNextSibling(nsIDOMNode** aNextSibling)
|
|||
nsIContent *parent = GetParent();
|
||||
if (parent) {
|
||||
PRInt32 pos = parent->IndexOf(this);
|
||||
if (pos > 0) {
|
||||
if (pos > -1) {
|
||||
sibling = parent->GetChildAt(pos + 1);
|
||||
}
|
||||
}
|
||||
else if (mDocument) {
|
||||
PRInt32 pos = mDocument->IndexOf(this);
|
||||
if (pos > 0) {
|
||||
if (pos > -1) {
|
||||
sibling = mDocument->GetChildAt(pos + 1);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче