mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 04:03:47 +00:00
Bug 381167, r+sr=roc
This commit is contained in:
parent
95169fc26a
commit
76571dfc9a
@ -120,9 +120,12 @@ static void FindBodyElement(nsIContent* aParent, nsIContent** aResult)
|
||||
*aResult = content;
|
||||
NS_ADDREF(*aResult);
|
||||
break;
|
||||
}
|
||||
else if (content->IsNodeOfType(nsINode::eELEMENT) &&
|
||||
!ni->Equals(nsGkAtoms::_template, kNameSpaceID_XUL)) {
|
||||
} else if (ni->Equals(nsGkAtoms::tree, kNameSpaceID_XUL)) {
|
||||
// There are nesting tree elements. Only the innermost should
|
||||
// find the treechilren.
|
||||
break;
|
||||
} else if (content->IsNodeOfType(nsINode::eELEMENT) &&
|
||||
!ni->Equals(nsGkAtoms::_template, kNameSpaceID_XUL)) {
|
||||
FindBodyElement(content, aResult);
|
||||
if (*aResult)
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user