зеркало из https://github.com/mozilla/gecko-dev.git
Missed a file.
This commit is contained in:
Родитель
e9bb24af9b
Коммит
7189f027ca
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче