mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #1513 - Bail on orphan node
This was refactored by Mozilla into doing effectively the same thing so it aligns with them re: behavior. Resolves #1513
This commit is contained in:
parent
92f7e0e48e
commit
788e24053a
1 changed files with 5 additions and 1 deletions
|
|
@ -4641,7 +4641,11 @@ HTMLEditRules::WillAlign(Selection& aSelection,
|
|||
}
|
||||
|
||||
nsCOMPtr<nsINode> curParent = curNode->GetParentNode();
|
||||
int32_t offset = curParent ? curParent->IndexOf(curNode) : -1;
|
||||
if (!curParent) {
|
||||
continue;
|
||||
}
|
||||
|
||||
int32_t offset = curParent->IndexOf(curNode);
|
||||
|
||||
// Skip insignificant formatting text nodes to prevent unnecessary
|
||||
// structure splitting!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue