Merge remote-tracking branch 'origin/tracking' into custom

This commit is contained in:
roytam1 2025-07-04 22:28:17 +08:00
commit 9175504ffc
25 changed files with 75 additions and 75 deletions

View file

@ -406,7 +406,7 @@ HTMLEditor::FindSelectionRoot(nsINode* aNode)
// If the content is in read-write state but is not editable itself,
// return it as the selection root.
if (content->IsElement() &&
content->AsElement()->State().HasState(NS_EVENT_STATE_MOZ_READWRITE)) {
content->AsElement()->State().HasState(NS_EVENT_STATE_READWRITE)) {
return content.forget();
}
return nullptr;