Bug 1845641 - Remove runtime preference for lquote/rquote. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D184661
This commit is contained in:
Frederic Wang 2023-07-27 09:57:32 +00:00
Родитель f7f26633d4
Коммит 5709f3323e
7 изменённых файлов: 1 добавлений и 92 удалений

Просмотреть файл

@ -45,25 +45,6 @@ math[display="inline" i] {
math-style: compact;
}
/**************************************************************************/
/* Token elements */
/**************************************************************************/
@media not (-moz-mathml-core-ms) {
ms {
display: inline;
}
ms:before, ms:after {
content: "\0022"
}
ms[lquote]:before {
content: attr(lquote)
}
ms[rquote]:after {
content: attr(rquote)
}
}
/**************************************************************************/
/* Links */
/**************************************************************************/

Просмотреть файл

@ -1,18 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
body { font-family:sans-serif; }
p { height:2em; }
</style>
</head>
<body>
<p>:L_R</p>
<p>:L_"</p>
<p>:"_R</p>
<p>:L_"</p>
<p>:"_R</p>
<p>:"_"</p>
<p>:"_"</p>
<p>:"_"</p>
</body>
</html>

Просмотреть файл

@ -1,39 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<style type="text/css">
body { font-family:sans-serif; }
p { height:2em; }
</style>
</head>
<body>
<p>:<ms xmlns="http://www.w3.org/1998/Math/MathML" lquote="L" rquote="R">_</ms></p>
<p>:<ms id="m1" xmlns="http://www.w3.org/1998/Math/MathML">_</ms></p>
<p>:<ms id="m2" xmlns="http://www.w3.org/1998/Math/MathML">_</ms></p>
<p>:<ms id="m3" xmlns="http://www.w3.org/1998/Math/MathML" lquote="_">_</ms></p>
<p>:<ms id="m4" xmlns="http://www.w3.org/1998/Math/MathML" rquote="_">_</ms></p>
<p>:<ms id="m5" xmlns="http://www.w3.org/1998/Math/MathML" lquote="_" rquote="_">_</ms></p>
<p>:<ms id="m6" xmlns="http://www.w3.org/1998/Math/MathML" lquote="_">_</ms></p>
<p>:<ms id="m7" xmlns="http://www.w3.org/1998/Math/MathML" rquote="_">_</ms></p>
<script>
function doTest() {
var m1 = document.getElementById("m1");
m1.setAttribute("lquote", "L");
var m2 = document.getElementById("m2");
m2.setAttribute("rquote", "R");
var m3 = document.getElementById("m3");
m3.setAttribute("lquote", "L");
var m4 = document.getElementById("m4");
m4.setAttribute("rquote", "R");
var m5 = document.getElementById("m5");
m5.removeAttribute("lquote");
m5.removeAttribute("rquote");
var m6 = document.getElementById("m6");
m6.removeAttribute("lquote");
var m7 = document.getElementById("m7");
m7.removeAttribute("rquote");
document.documentElement.removeAttribute('class');
}
window.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</body>
</html>

Просмотреть файл

@ -9395,13 +9395,6 @@
mirror: always
rust: true
# Whether to disable the lquote/rquote attributes of the <ms> element.
- name: mathml.ms_lquote_rquote_attributes.disabled
type: bool
value: true
mirror: always
rust: true
# Whether to disable legacy names "thickmathspace", "mediummathspace",
# "thickmathspace" etc for length attributes.
- name: mathml.mathspace_names.disabled

Просмотреть файл

@ -684,7 +684,7 @@ macro_rules! bool_pref_feature {
/// to support new types in these entries and (2) ensuring that either
/// nsPresContext::MediaFeatureValuesChanged is called when the value that
/// would be returned by the evaluator function could change.
pub static MEDIA_FEATURES: [QueryFeatureDescription; 62] = [
pub static MEDIA_FEATURES: [QueryFeatureDescription; 61] = [
feature!(
atom!("width"),
AllowsRanges::Yes,
@ -997,11 +997,6 @@ pub static MEDIA_FEATURES: [QueryFeatureDescription; 62] = [
atom!("-moz-mathml-core-maction-and-semantics"),
"mathml.legacy_maction_and_semantics_implementations.disabled"
),
// media query for MathML Core's implementation of ms
bool_pref_feature!(
atom!("-moz-mathml-core-ms"),
"mathml.ms_lquote_rquote_attributes.disabled"
),
// media query for popover attribute
bool_pref_feature!(atom!("-moz-popover-enabled"), "dom.element.popover.enabled"),
// media query for MathML Core's implementation of mi

Просмотреть файл

@ -505,7 +505,6 @@ static constexpr struct {
{"browser.theme.toolbar-theme"_ns, widget::ThemeChangeKind::AllBits},
{"browser.theme.content-theme"_ns},
{"mathml.legacy_maction_and_semantics_implementations.disabled"_ns},
{"mathml.ms_lquote_rquote_attributes.disabled"_ns},
{"dom.element.popover.enabled"_ns},
{"mathml.legacy_mathvariant_attribute.disabled"_ns},
};

Просмотреть файл

@ -2395,8 +2395,6 @@ STATIC_ATOMS = [
Atom("onsupportedkeyschange", "onsupportedkeyschange"),
# media query for MathML Core's implementation of maction/semantics
Atom("_moz_mathml_core_maction_and_semantics", "-moz-mathml-core-maction-and-semantics"),
# media query for MathML Core's implementation of ms
Atom("_moz_mathml_core_ms", "-moz-mathml-core-ms"),
Atom("_moz_popover_enabled", "-moz-popover-enabled"),
# media query for MathML Core's implementation of mi
Atom("_moz_mathml_core_mi", "-moz-mathml-core-mi"),