Bug 1467790 - Inline nsINode::IsEditable, r=masayuki

This commit is contained in:
Olli Pettay
2018-06-08 15:57:13 -04:00
parent b08698d505
commit d107f4ae65
8 changed files with 20 additions and 16 deletions

View File

@@ -201,20 +201,6 @@ nsINode::CreateSlots()
return new nsSlots();
}
bool
nsINode::IsEditable() const
{
if (HasFlag(NODE_IS_EDITABLE)) {
// The node is in an editable contentEditable subtree.
return true;
}
nsIDocument *doc = GetUncomposedDoc();
// Check if the node is in a document and the document is in designMode.
return doc && doc->HasFlag(NODE_IS_EDITABLE);
}
nsIContent*
nsINode::GetTextEditorRootContent(TextEditor** aTextEditor)
{