mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
b=380359; fix bug in checkbox/checkbooleanattr; r=roc
This commit is contained in:
parent
9af6bdf08f
commit
89e600459d
@ -81,6 +81,9 @@ nsNativeTheme::GetContentState(nsIFrame* aFrame, PRUint8 aWidgetType)
|
||||
if (isXULCheckboxRadio)
|
||||
aFrame = aFrame->GetParent();
|
||||
|
||||
if (!aFrame->GetContent())
|
||||
return 0;
|
||||
|
||||
nsIPresShell *shell = GetPresShell(aFrame);
|
||||
if (!shell)
|
||||
return 0;
|
||||
@ -103,6 +106,9 @@ nsNativeTheme::CheckBooleanAttr(nsIFrame* aFrame, nsIAtom* aAtom)
|
||||
return PR_FALSE;
|
||||
|
||||
nsIContent* content = aFrame->GetContent();
|
||||
if (!content)
|
||||
return PR_FALSE;
|
||||
|
||||
if (content->IsNodeOfType(nsINode::eHTML))
|
||||
return content->HasAttr(kNameSpaceID_None, aAtom);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user