This commit is contained in:
hyatt%netscape.com 2001-05-03 02:39:36 +00:00
Родитель e9bb24af9b
Коммит 7189f027ca
1 изменённых файлов: 10 добавлений и 8 удалений

Просмотреть файл

@ -519,14 +519,16 @@ nsPopupSetFrame::MarkAsGenerated(nsIContent* aPopupContent)
nsCOMPtr<nsIContent> childContent;
mContent->ChildAt(i, *getter_AddRefs(childContent));
// Retrieve the menugenerated attribute.
nsAutoString value;
childContent->GetAttribute(kNameSpaceID_None, nsXULAtoms::menugenerated,
value);
if (value == NS_LITERAL_STRING("true")) {
// Ungenerate this element.
childContent->UnsetAttribute(kNameSpaceID_None, nsXULAtoms::menugenerated,
PR_TRUE);
if (childContent.get() != aPopupContent) {
// Retrieve the menugenerated attribute.
nsAutoString value;
childContent->GetAttribute(kNameSpaceID_None, nsXULAtoms::menugenerated,
value);
if (value == NS_LITERAL_STRING("true")) {
// Ungenerate this element.
childContent->UnsetAttribute(kNameSpaceID_None, nsXULAtoms::menugenerated,
PR_TRUE);
}
}
}