Bug 1319255 part 2. Stop doing casts to HTMLContentElement* simply based on tag. r=wchen
This commit is contained in:
@@ -66,7 +66,7 @@ HTMLContentElement::BindToTree(nsIDocument* aDocument,
|
||||
if (containingShadow && !oldContainingShadow) {
|
||||
nsINode* parentNode = nsINode::GetParentNode();
|
||||
while (parentNode && parentNode != containingShadow) {
|
||||
if (parentNode->IsHTMLElement(nsGkAtoms::content)) {
|
||||
if (parentNode->IsHTMLContentElement()) {
|
||||
// Content element in fallback content is not an insertion point.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user