Issue #2112 - Part 7: Remove Servo CSS Loader support

This commit is contained in:
FranklinDM 2024-03-25 16:57:34 +08:00 committed by roytam1
commit 14764253a5
17 changed files with 37 additions and 87 deletions

View file

@ -111,7 +111,7 @@ nsMathMLElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
// Enable MathML and setup the style sheet during binding, not element
// construction, because we could move a MathML element from the document
// that created it to another document.
auto cache = nsLayoutStylesheetCache::For(doc->GetStyleBackendType());
auto cache = nsLayoutStylesheetCache::Get();
doc->SetMathMLEnabled();
doc->EnsureOnDemandBuiltInUASheet(cache->MathMLSheet());