mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 752304 - Logic error in nsHTMLEditor::SetInlinePropertyOnNodeImpl; r=ehsan
This commit is contained in:
parent
eb33f59b5f
commit
4eab9ca44b
@ -457,7 +457,7 @@ nsHTMLEditor::SetInlinePropertyOnNodeImpl(nsIContent* aNode,
|
||||
nsIContent* nextNode = GetNextHTMLSibling(aNode);
|
||||
if (nextNode && nextNode->Tag() == aProperty &&
|
||||
HasAttrVal(nextNode, aAttribute, *aValue) &&
|
||||
IsOnlyAttribute(priorNode, *aAttribute)) {
|
||||
IsOnlyAttribute(nextNode, *aAttribute)) {
|
||||
// following sib is already right kind of inline node; slide this over into it
|
||||
return MoveNode(aNode->AsDOMNode(), nextNode->AsDOMNode(), 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user