mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 679459 - "ASSERTION: mEndOffset is beyond the end of this node" in nsRange::ContentInserted. r=smaug
This commit is contained in:
parent
28b580015a
commit
0459922a98
@ -748,7 +748,8 @@ nsGenericDOMDataNode::SplitData(PRUint32 aOffset, nsIContent** aReturn,
|
||||
CharacterDataChangeInfo::Details details = {
|
||||
CharacterDataChangeInfo::Details::eSplit, newContent
|
||||
};
|
||||
rv = SetTextInternal(cutStartOffset, cutLength, nsnull, 0, PR_TRUE, &details);
|
||||
rv = SetTextInternal(cutStartOffset, cutLength, nsnull, 0, PR_TRUE,
|
||||
aCloneAfterOriginal ? &details : nsnull);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user