mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 18:50:08 +00:00
Bug 454475 - Fix "unhandled enumeration value" warnings in layout/; r+sr=roc
This commit is contained in:
parent
67e9a0b436
commit
ed2268548d
@ -1430,6 +1430,9 @@ nsPrintEngine::GetDisplayTitleAndURL(nsPrintObject* aPO,
|
||||
*aTitle = NS_strdup(mPrt->mBrandName);
|
||||
}
|
||||
break;
|
||||
case eDocTitleDefNone:
|
||||
// *aTitle defaults to nsnull
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -470,6 +470,7 @@ nsCSSDeclaration::AppendCSSValueToString(nsCSSProperty aProperty,
|
||||
case eCSSUnit_None: aResult.AppendLiteral("none"); break;
|
||||
case eCSSUnit_Normal: aResult.AppendLiteral("normal"); break;
|
||||
case eCSSUnit_System_Font: aResult.AppendLiteral("-moz-use-system-font"); break;
|
||||
case eCSSUnit_Dummy: break;
|
||||
|
||||
case eCSSUnit_String: break;
|
||||
case eCSSUnit_URL: break;
|
||||
@ -478,6 +479,8 @@ nsCSSDeclaration::AppendCSSValueToString(nsCSSProperty aProperty,
|
||||
case eCSSUnit_Attr:
|
||||
case eCSSUnit_Counter:
|
||||
case eCSSUnit_Counters: aResult.Append(PRUnichar(')')); break;
|
||||
case eCSSUnit_Local_Font: break;
|
||||
case eCSSUnit_Font_Format: break;
|
||||
case eCSSUnit_Function: break;
|
||||
case eCSSUnit_Integer: break;
|
||||
case eCSSUnit_Enumerated: break;
|
||||
|
@ -1901,6 +1901,12 @@ nsRuleNode::SetDefaultOnRoot(const nsStyleStructID aSID, nsStyleContext* aContex
|
||||
return svgReset;
|
||||
}
|
||||
#endif
|
||||
default:
|
||||
/*
|
||||
* unhandled case: nsStyleStructID_Length.
|
||||
* last item of nsStyleStructID, to know its length.
|
||||
*/
|
||||
return nsnull;
|
||||
}
|
||||
return nsnull;
|
||||
}
|
||||
|
@ -232,8 +232,6 @@ nsPopupBoxObject::EnableKeyboardNavigator(PRBool aEnableKeyboardNavigator)
|
||||
NS_IMETHODIMP
|
||||
nsPopupBoxObject::GetPopupState(nsAString& aState)
|
||||
{
|
||||
aState.AssignLiteral("closed");
|
||||
|
||||
nsMenuPopupFrame *menuPopupFrame = GetMenuPopupFrame();
|
||||
if (menuPopupFrame) {
|
||||
switch (menuPopupFrame->PopupState()) {
|
||||
@ -248,6 +246,12 @@ nsPopupBoxObject::GetPopupState(nsAString& aState)
|
||||
case ePopupInvisible:
|
||||
aState.AssignLiteral("hiding");
|
||||
break;
|
||||
case ePopupClosed:
|
||||
aState.AssignLiteral("closed");
|
||||
break;
|
||||
default:
|
||||
NS_NOTREACHED("Bad popup state");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user