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:
2020-02-28 13:38:35 +08:00
parent 13552d57d1
commit 4af255ba8a
17 changed files with 2831 additions and 1750 deletions
+1 -4
View File
@@ -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();
}