Don't create style rule DOM wrappers for inline style, since we are not supposed to, and ours crash when used on inline style. b=218222 r+sr=bzbarsky

This commit is contained in:
dbaron%dbaron.org 2006-05-17 02:38:13 +00:00
parent f5e8641ad1
commit af2cb5023a

View File

@ -178,7 +178,8 @@ inDOMUtils::GetCSSStyleRules(nsIDOMElement *aElement,
cssRule = do_QueryInterface(srule);
if (cssRule) {
cssRule->GetDOMRule(getter_AddRefs(domRule));
rules->InsertElementAt(domRule, 0);
if (domRule)
rules->InsertElementAt(domRule, 0);
}
}