mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 483217. Don't return an nsresult as a PRBool. r+sr=bzbarsky
This commit is contained in:
parent
4237a9a224
commit
3003c9a317
@ -598,9 +598,7 @@ nsHTMLButtonElement::SaveState()
|
||||
PRBool
|
||||
nsHTMLButtonElement::RestoreState(nsPresState* aState)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aState);
|
||||
|
||||
if (aState->IsDisabledSet()) {
|
||||
if (aState && aState->IsDisabledSet()) {
|
||||
SetDisabled(aState->GetDisabled());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user