mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1113121 followup - fix assertion r=me
This commit is contained in:
parent
e597ad29ec
commit
8b8175fed3
@ -7398,7 +7398,7 @@ nsHTMLEditRules::JoinNodesSmart(nsIContent& aNodeLeft, nsIContent& aNodeRight)
|
||||
{
|
||||
// Caller responsible for left and right node being the same type
|
||||
nsCOMPtr<nsINode> parent = aNodeLeft.GetParentNode();
|
||||
NS_ENSURE_STATE(parent);
|
||||
NS_ENSURE_TRUE(parent, ::DOMPoint());
|
||||
int32_t parOffset = parent->IndexOf(&aNodeLeft);
|
||||
nsCOMPtr<nsINode> rightParent = aNodeRight.GetParentNode();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user