зеркало из https://github.com/mozilla/gecko-dev.git
remove xxx comment, followup for 391288. r=cbarrett a=josh
This commit is contained in:
Родитель
b3bb455e7d
Коммит
0dd298e898
|
@ -142,16 +142,14 @@ nsMenuX::Create(nsISupports * aParent, const nsAString &aLabel, const nsAString
|
|||
if (menubar && mMenuContent->GetChildCount() == 0)
|
||||
mVisible = PR_FALSE;
|
||||
|
||||
// XXXjag simply use mIsEnabled?
|
||||
SetEnabled(!mMenuContent->AttrValueIs(kNameSpaceID_None, nsWidgetAtoms::disabled,
|
||||
nsWidgetAtoms::_true, eCaseMatters));
|
||||
[mNativeMenuItem setEnabled:(BOOL)mIsEnabled];
|
||||
|
||||
NSString *newCocoaLabelString = MenuHelpersX::CreateTruncatedCocoaLabel(mLabel);
|
||||
mNativeMenuItem = [[NSMenuItem alloc] initWithTitle:newCocoaLabelString action:nil keyEquivalent:@""];
|
||||
[newCocoaLabelString release];
|
||||
|
||||
[mNativeMenuItem setEnabled:(BOOL)mIsEnabled];
|
||||
|
||||
// We call MenuConstruct here because keyboard commands are dependent upon
|
||||
// native menu items being created. If we only call MenuConstruct when a menu
|
||||
// is actually selected, then we can't access keyboard commands until the
|
||||
|
|
Загрузка…
Ссылка в новой задаче