mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48: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
|
|
@ -516,11 +516,10 @@ LoaderReusableStyleSheets::FindReusableStyleSheet(nsIURI* aURL,
|
|||
* Loader Implementation *
|
||||
*************************/
|
||||
|
||||
Loader::Loader(StyleBackendType aType)
|
||||
Loader::Loader(void)
|
||||
: mDocument(nullptr)
|
||||
, mDatasToNotifyOn(0)
|
||||
, mCompatMode(eCompatibility_FullStandards)
|
||||
, mStyleBackendType(Some(aType))
|
||||
, mEnabled(true)
|
||||
, mReporter(new ConsoleReportCollector())
|
||||
#ifdef DEBUG
|
||||
|
|
@ -1098,8 +1097,7 @@ Loader::CreateSheet(nsIURI* aURI,
|
|||
// can mess with our hashtables.
|
||||
*aIsAlternate = IsAlternate(aTitle, aHasAlternateRel);
|
||||
|
||||
// XXXheycam Cached sheets currently must be CSSStyleSheets.
|
||||
if (aURI && GetStyleBackendType() == StyleBackendType::Gecko) {
|
||||
if (aURI) {
|
||||
aSheetState = eSheetComplete;
|
||||
RefPtr<StyleSheet> sheet;
|
||||
|
||||
|
|
@ -2642,17 +2640,5 @@ Loader::SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const
|
|||
return n;
|
||||
}
|
||||
|
||||
StyleBackendType
|
||||
Loader::GetStyleBackendType() const
|
||||
{
|
||||
MOZ_ASSERT(mStyleBackendType || mDocument,
|
||||
"you must construct a Loader with a document or set a "
|
||||
"StyleBackendType on it before calling GetStyleBackendType");
|
||||
if (mStyleBackendType) {
|
||||
return *mStyleBackendType;
|
||||
}
|
||||
return mDocument->GetStyleBackendType();
|
||||
}
|
||||
|
||||
} // namespace css
|
||||
} // namespace mozilla
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue