mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
bug 8300; rvd: floppy moose; aprvd: chofmann
This commit is contained in:
parent
2a037aa6e6
commit
78b68b1878
@ -1687,7 +1687,7 @@ nsHTMLEditRules::ReturnInHeader(nsIDOMSelection *aSelection,
|
||||
// merge text node with like sibling, if any
|
||||
nsCOMPtr<nsIDOMNode> sibling;
|
||||
textNode->GetNextSibling(getter_AddRefs(sibling));
|
||||
if (sibling)
|
||||
if (sibling && mEditor->IsTextNode(sibling) && mEditor->IsEditable(sibling))
|
||||
{
|
||||
res = mEditor->JoinNodes(textNode,sibling,p);
|
||||
if (NS_FAILED(res)) return res;
|
||||
|
@ -1687,7 +1687,7 @@ nsHTMLEditRules::ReturnInHeader(nsIDOMSelection *aSelection,
|
||||
// merge text node with like sibling, if any
|
||||
nsCOMPtr<nsIDOMNode> sibling;
|
||||
textNode->GetNextSibling(getter_AddRefs(sibling));
|
||||
if (sibling)
|
||||
if (sibling && mEditor->IsTextNode(sibling) && mEditor->IsEditable(sibling))
|
||||
{
|
||||
res = mEditor->JoinNodes(textNode,sibling,p);
|
||||
if (NS_FAILED(res)) return res;
|
||||
|
Loading…
Reference in New Issue
Block a user