Bug 988655 - Stop returning true for shadow DOM nodes in nsIContent::IsInAnonymousSubtree. r=mrbkap

This commit is contained in:
Bobby Holley 2014-04-06 12:32:37 -07:00
parent 2a621e5867
commit bf0a65cde1

View File

@ -240,7 +240,7 @@ public:
static_cast<nsIContent*>(SubtreeRoot())->IsInNativeAnonymousSubtree()),
"Must have binding parent when in native anonymous subtree which is in document.\n"
"Native anonymous subtree which is not in document must have native anonymous root.");
return IsInNativeAnonymousSubtree() || GetBindingParent() != nullptr;
return IsInNativeAnonymousSubtree() || (!HasFlag(NODE_IS_IN_SHADOW_TREE) && GetBindingParent() != nullptr);
}
/**