mirror of
https://github.com/roytam1/mozilla45esr.git
synced 2026-05-29 17:38:37 +00:00
import changes from tenfourfox:
- #591: M1467722 (cfb43390a) - #591: bustage fix (bbc9a12a5) - #592: implement CSSStyleSheet rules and addRule (2eb5ba7f6) - #588: increase latency of search a little more (ddd1b9aab) - #541: more disgusting hacks to fix jsfiddle (1f3d8fcbe) - more hosts for adblock (1cdef889b) - #593: M1607742 M1684490 + updated TLDs, pins, HSTS (67706e1f6)
This commit is contained in:
@@ -537,11 +537,8 @@ nsHTMLCSSUtils::GetComputedStyle(dom::Element* aElement)
|
||||
nsIDocument* doc = aElement->GetCurrentDoc();
|
||||
NS_ENSURE_TRUE(doc, nullptr);
|
||||
|
||||
nsIPresShell* presShell = doc->GetShell();
|
||||
NS_ENSURE_TRUE(presShell, nullptr);
|
||||
|
||||
RefPtr<nsComputedDOMStyle> style =
|
||||
NS_NewComputedDOMStyle(aElement, EmptyString(), presShell);
|
||||
NS_NewComputedDOMStyle(aElement, EmptyString(), doc);
|
||||
|
||||
return style.forget();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user