From 7189f027ca3eab817fb4ba41801c9f91d307fdc9 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Thu, 3 May 2001 02:39:36 +0000 Subject: [PATCH] Missed a file. --- layout/xul/base/src/nsPopupSetFrame.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/layout/xul/base/src/nsPopupSetFrame.cpp b/layout/xul/base/src/nsPopupSetFrame.cpp index 827e456b96b2..c8003ea68dbd 100644 --- a/layout/xul/base/src/nsPopupSetFrame.cpp +++ b/layout/xul/base/src/nsPopupSetFrame.cpp @@ -519,14 +519,16 @@ nsPopupSetFrame::MarkAsGenerated(nsIContent* aPopupContent) nsCOMPtr 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); + } } }