mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-22 04:13:06 +09:00
Undo Mozilla Bug 1302937; Reinstate -moz-mac-lion-theme media query
This commit is contained in:
parent
afedf5b82e
commit
2d708bf86c
8 changed files with 74 additions and 41 deletions
|
|
@ -1122,6 +1122,11 @@ InitSystemMetrics()
|
|||
sSystemMetrics->AppendElement(nsGkAtoms::mac_graphite_theme);
|
||||
}
|
||||
|
||||
rv = LookAndFeel::GetInt(LookAndFeel::eIntID_MacLionTheme, &metricResult);
|
||||
if (NS_SUCCEEDED(rv) && metricResult) {
|
||||
sSystemMetrics->AppendElement(nsGkAtoms::mac_lion_theme);
|
||||
}
|
||||
|
||||
rv = LookAndFeel::GetInt(LookAndFeel::eIntID_MacYosemiteTheme, &metricResult);
|
||||
if (NS_SUCCEEDED(rv) && metricResult) {
|
||||
sSystemMetrics->AppendElement(nsGkAtoms::mac_yosemite_theme);
|
||||
|
|
@ -1161,7 +1166,7 @@ InitSystemMetrics()
|
|||
if (NS_SUCCEEDED(rv) && metricResult) {
|
||||
sSystemMetrics->AppendElement(nsGkAtoms::touch_enabled);
|
||||
}
|
||||
|
||||
|
||||
rv = LookAndFeel::GetInt(LookAndFeel::eIntID_SwipeAnimationEnabled,
|
||||
&metricResult);
|
||||
if (NS_SUCCEEDED(rv) && metricResult) {
|
||||
|
|
@ -1539,7 +1544,7 @@ checkGenericEmptyMatches(Element* aElement,
|
|||
do {
|
||||
child = aElement->GetChildAt(++index);
|
||||
// stop at first non-comment (and non-whitespace for
|
||||
// :-moz-only-whitespace) node
|
||||
// :-moz-only-whitespace) node
|
||||
} while (child && !IsSignificantChild(child, true, isWhitespaceSignificant));
|
||||
return (child == nullptr);
|
||||
}
|
||||
|
|
@ -2233,7 +2238,7 @@ static bool SelectorMatches(Element* aElement,
|
|||
NS_ASSERTION(hasAttr, "HasAttr lied");
|
||||
result = AttrMatchesValue(attr, value, isHTML);
|
||||
}
|
||||
|
||||
|
||||
attr = attr->mNext;
|
||||
} while (attr && result);
|
||||
}
|
||||
|
|
@ -3085,7 +3090,7 @@ nsCSSRuleProcessor::AppendFontFaceRules(
|
|||
if (!aArray.AppendElements(cascade->mFontFaceRules))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -3129,7 +3134,7 @@ nsCSSRuleProcessor::AppendPageRules(
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue