mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-02 04:27:31 +09:00
Issue #2835 - Part 2: Implement processing of import rules based on order of appearance
This commit is contained in:
parent
be3d8491c7
commit
37230e7b21
4 changed files with 31 additions and 4 deletions
|
|
@ -19,6 +19,7 @@ using namespace mozilla::dom;
|
|||
#define VISITED_PSEUDO_PREF "layout.css.visited_links_enabled"
|
||||
|
||||
static bool gSupportVisitedPseudo = true;
|
||||
static bool gLoadImportedSheetsInOrder = true;
|
||||
|
||||
static nsTArray<nsCOMPtr<nsIAtom>>* sSystemMetrics = 0;
|
||||
|
||||
|
|
@ -31,6 +32,9 @@ nsCSSRuleUtils::Startup()
|
|||
{
|
||||
Preferences::AddBoolVarCache(
|
||||
&gSupportVisitedPseudo, VISITED_PSEUDO_PREF, true);
|
||||
Preferences::AddBoolVarCache(&gLoadImportedSheetsInOrder,
|
||||
"layout.css.load-imported-sheets-in-order",
|
||||
true);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
@ -206,6 +210,12 @@ nsCSSRuleUtils::HasSystemMetric(nsIAtom* aMetric)
|
|||
return sSystemMetrics->IndexOf(aMetric) != sSystemMetrics->NoIndex;
|
||||
}
|
||||
|
||||
/* static */ bool
|
||||
nsCSSRuleUtils::LoadImportedSheetsInOrderEnabled()
|
||||
{
|
||||
return gLoadImportedSheetsInOrder;
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
/* static */ uint8_t
|
||||
nsCSSRuleUtils::GetWindowsThemeIdentifier()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue