Bug 1454236: Remove nsINode::eDOCUMENT_FRAGMENT. r=bz
MozReview-Commit-ID: D2F3LbQ1pvw
This commit is contained in:
@@ -215,11 +215,10 @@ IsElementOrTemplateContent(nsINode* aNode)
|
||||
if (aNode) {
|
||||
if (aNode->IsElement()) {
|
||||
return true;
|
||||
} else if (aNode->NodeType() == nsINode::DOCUMENT_FRAGMENT_NODE) {
|
||||
}
|
||||
if (aNode->IsDocumentFragment()) {
|
||||
// Check if the node is a template content.
|
||||
mozilla::dom::DocumentFragment* frag =
|
||||
static_cast<mozilla::dom::DocumentFragment*>(aNode);
|
||||
nsIContent* fragHost = frag->GetHost();
|
||||
nsIContent* fragHost = aNode->AsDocumentFragment()->GetHost();
|
||||
if (fragHost && nsNodeUtils::IsTemplateElement(fragHost)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user