mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Issue #2112 - Part 7: Remove Servo CSS Loader support
This commit is contained in:
parent
10bf8705d0
commit
14764253a5
17 changed files with 37 additions and 87 deletions
|
|
@ -226,9 +226,7 @@ nsStyleSheetService::LoadAndRegisterSheetInternal(nsIURI *aSheetURI,
|
|||
return NS_ERROR_INVALID_ARG;
|
||||
}
|
||||
|
||||
// XXXheycam We'll need to load and register both a Gecko- and Servo-backed
|
||||
// style sheet.
|
||||
RefPtr<css::Loader> loader = new css::Loader(StyleBackendType::Gecko);
|
||||
RefPtr<css::Loader> loader = new css::Loader();
|
||||
|
||||
RefPtr<StyleSheet> sheet;
|
||||
nsresult rv = loader->LoadSheetSync(aSheetURI, parsingMode, true, &sheet);
|
||||
|
|
@ -279,10 +277,7 @@ nsStyleSheetService::PreloadSheet(nsIURI *aSheetURI, uint32_t aSheetType,
|
|||
return NS_ERROR_INVALID_ARG;
|
||||
}
|
||||
|
||||
// XXXheycam PreloadSheet can't support ServoStyleSheets until they implement
|
||||
// nsIDOMStyleSheet.
|
||||
|
||||
RefPtr<css::Loader> loader = new css::Loader(StyleBackendType::Gecko);
|
||||
RefPtr<css::Loader> loader = new css::Loader();
|
||||
|
||||
RefPtr<StyleSheet> sheet;
|
||||
nsresult rv = loader->LoadSheetSync(aSheetURI, parsingMode, true, &sheet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue