mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Fix for a minor little bug I introduced into GetChecked (that only happened with
trees). Thanks to jdunn for spotting it. r=matejka, a=chofmann
This commit is contained in:
parent
7a8c9db45b
commit
4c802430de
@ -496,7 +496,7 @@ nsHTMLInputElement::SetAutocomplete(const nsString& aAutocomplete)
|
||||
NS_IMETHODIMP
|
||||
nsHTMLInputElement::GetChecked(PRBool* aValue)
|
||||
{
|
||||
nsString value("0");
|
||||
nsAutoString value("0");
|
||||
nsIFormControlFrame* formControlFrame = nsnull;
|
||||
if (NS_SUCCEEDED(nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame))) {
|
||||
if (nsnull != formControlFrame) {
|
||||
@ -510,7 +510,6 @@ nsHTMLInputElement::GetChecked(PRBool* aValue)
|
||||
|
||||
// Obtain the value property from the presentation state.
|
||||
if (presState) {
|
||||
nsAutoString value;
|
||||
presState->GetStateProperty("checked", value);
|
||||
}
|
||||
}
|
||||
|
@ -496,7 +496,7 @@ nsHTMLInputElement::SetAutocomplete(const nsString& aAutocomplete)
|
||||
NS_IMETHODIMP
|
||||
nsHTMLInputElement::GetChecked(PRBool* aValue)
|
||||
{
|
||||
nsString value("0");
|
||||
nsAutoString value("0");
|
||||
nsIFormControlFrame* formControlFrame = nsnull;
|
||||
if (NS_SUCCEEDED(nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame))) {
|
||||
if (nsnull != formControlFrame) {
|
||||
@ -510,7 +510,6 @@ nsHTMLInputElement::GetChecked(PRBool* aValue)
|
||||
|
||||
// Obtain the value property from the presentation state.
|
||||
if (presState) {
|
||||
nsAutoString value;
|
||||
presState->GetStateProperty("checked", value);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user