mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Issue #2828 - Part 3: Refactor selector matching and rule cascade data into separate files/classes
This commit is contained in:
parent
7b51aa7ca1
commit
03f29e75ec
20 changed files with 4432 additions and 4171 deletions
|
|
@ -14,7 +14,7 @@
|
|||
#ifdef XP_WIN
|
||||
#include "mozilla/LookAndFeel.h"
|
||||
#endif
|
||||
#include "nsCSSRuleProcessor.h"
|
||||
#include "nsCSSRuleUtils.h"
|
||||
#include "nsDeviceContext.h"
|
||||
#include "nsIBaseWindow.h"
|
||||
#include "nsIDocument.h"
|
||||
|
|
@ -404,7 +404,7 @@ GetSystemMetric(nsPresContext* aPresContext, const nsMediaFeature* aFeature,
|
|||
MOZ_ASSERT(aFeature->mValueType == nsMediaFeature::eBoolInteger,
|
||||
"unexpected type");
|
||||
nsIAtom *metricAtom = *aFeature->mData.mMetric;
|
||||
bool hasMetric = nsCSSRuleProcessor::HasSystemMetric(metricAtom);
|
||||
bool hasMetric = nsCSSRuleUtils::HasSystemMetric(metricAtom);
|
||||
aResult.SetIntValue(hasMetric ? 1 : 0, eCSSUnit_Integer);
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
@ -420,7 +420,7 @@ GetWindowsTheme(nsPresContext* aPresContext, const nsMediaFeature* aFeature,
|
|||
|
||||
#ifdef XP_WIN
|
||||
uint8_t windowsThemeId =
|
||||
nsCSSRuleProcessor::GetWindowsThemeIdentifier();
|
||||
nsCSSRuleUtils::GetWindowsThemeIdentifier();
|
||||
|
||||
// Classic mode should fail to match.
|
||||
if (windowsThemeId == LookAndFeel::eWindowsTheme_Classic)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue