mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
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:
parent
f5e8641ad1
commit
af2cb5023a
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user