Bug 1706346 part 3 - [css-lists] Remove the internal '-moz-list-reversed' CSS property that is no longer needed. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D129957
This commit is contained in:
Mats Palmgren 2021-11-14 03:49:36 +00:00
parent b103892a41
commit a36baa4d58
15 changed files with 2 additions and 61 deletions

View file

@ -98,7 +98,6 @@ exports.ANIMATION_TYPE_FOR_LONGHANDS = [
"list-style-image", "list-style-image",
"list-style-position", "list-style-position",
"list-style-type", "list-style-type",
"-moz-list-reversed",
"marker-end", "marker-end",
"marker-mid", "marker-mid",
"marker-start", "marker-start",

View file

@ -498,7 +498,6 @@ cbindgen-types = [
{ gecko = "StyleTextDecorationLine", servo = "crate::values::computed::TextDecorationLine" }, { gecko = "StyleTextDecorationLine", servo = "crate::values::computed::TextDecorationLine" },
{ gecko = "StyleTextTransform", servo = "crate::values::computed::TextTransform" }, { gecko = "StyleTextTransform", servo = "crate::values::computed::TextTransform" },
{ gecko = "StyleTextUnderlinePosition", servo = "crate::values::computed::TextUnderlinePosition" }, { gecko = "StyleTextUnderlinePosition", servo = "crate::values::computed::TextUnderlinePosition" },
{ gecko = "StyleMozListReversed", servo = "crate::values::computed::MozListReversed" },
{ gecko = "StyleOwned", servo = "crate::gecko_bindings::sugar::ownership::Owned" }, { gecko = "StyleOwned", servo = "crate::gecko_bindings::sugar::ownership::Owned" },
{ gecko = "StyleOwnedOrNull", servo = "crate::gecko_bindings::sugar::ownership::OwnedOrNull" }, { gecko = "StyleOwnedOrNull", servo = "crate::gecko_bindings::sugar::ownership::OwnedOrNull" },
{ gecko = "StyleStrong", servo = "crate::gecko_bindings::sugar::ownership::Strong" }, { gecko = "StyleStrong", servo = "crate::gecko_bindings::sugar::ownership::Strong" },

View file

@ -584,8 +584,7 @@ nsStyleList::nsStyleList(const Document& aDocument)
: mListStylePosition(NS_STYLE_LIST_STYLE_POSITION_OUTSIDE), : mListStylePosition(NS_STYLE_LIST_STYLE_POSITION_OUTSIDE),
mQuotes(StyleQuotes::Auto()), mQuotes(StyleQuotes::Auto()),
mListStyleImage(StyleImage::None()), mListStyleImage(StyleImage::None()),
mImageRegion(StyleClipRectOrAuto::Auto()), mImageRegion(StyleClipRectOrAuto::Auto()) {
mMozListReversed(StyleMozListReversed::False) {
MOZ_COUNT_CTOR(nsStyleList); MOZ_COUNT_CTOR(nsStyleList);
MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(NS_IsMainThread());
@ -599,8 +598,7 @@ nsStyleList::nsStyleList(const nsStyleList& aSource)
mCounterStyle(aSource.mCounterStyle), mCounterStyle(aSource.mCounterStyle),
mQuotes(aSource.mQuotes), mQuotes(aSource.mQuotes),
mListStyleImage(aSource.mListStyleImage), mListStyleImage(aSource.mListStyleImage),
mImageRegion(aSource.mImageRegion), mImageRegion(aSource.mImageRegion) {
mMozListReversed(aSource.mMozListReversed) {
MOZ_COUNT_CTOR(nsStyleList); MOZ_COUNT_CTOR(nsStyleList);
} }
@ -635,11 +633,6 @@ nsChangeHint nsStyleList::CalcDifference(
mCounterStyle != aNewData.mCounterStyle) { mCounterStyle != aNewData.mCounterStyle) {
hint = nsChangeHint_NeutralChange; hint = nsChangeHint_NeutralChange;
} }
// This is an internal UA-sheet property that is true only for <ol reversed>
// so hopefully it changes rarely.
if (mMozListReversed != aNewData.mMozListReversed) {
return NS_STYLE_HINT_REFLOW;
}
// list-style-image and -moz-image-region may affect some XUL elements // list-style-image and -moz-image-region may affect some XUL elements
// regardless of display value, so we still need to check them. // regardless of display value, so we still need to check them.
if (mListStyleImage != aNewData.mListStyleImage) { if (mListStyleImage != aNewData.mListStyleImage) {

View file

@ -685,8 +685,6 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleList {
// the rect to use within an image. // the rect to use within an image.
mozilla::StyleClipRectOrAuto mImageRegion; mozilla::StyleClipRectOrAuto mImageRegion;
// true in an <ol reversed> scope.
mozilla::StyleMozListReversed mMozListReversed;
}; };
struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStylePage { struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStylePage {

View file

@ -588,11 +588,6 @@ ul, menu, dir {
ul, ol, menu { ul, ol, menu {
counter-reset: list-item; counter-reset: list-item;
-moz-list-reversed: false;
}
ol[reversed] {
-moz-list-reversed: true;
} }
ol { ol {

View file

@ -95,7 +95,6 @@ const char* gInaccessibleProperties[] = {
"-x-text-zoom", "-x-text-zoom",
"-moz-default-appearance", "-moz-default-appearance",
"-moz-inert", "-moz-inert",
"-moz-list-reversed", // parsed by UA sheets only
"-moz-script-level", // parsed by UA sheets only "-moz-script-level", // parsed by UA sheets only
"-moz-script-size-multiplier", "-moz-script-size-multiplier",
"-moz-script-min-size", "-moz-script-min-size",

View file

@ -8,7 +8,6 @@ const NON_CONTENT_ACCESSIBLE_PROPERTIES = [
"-x-span", "-x-span",
"-x-lang", "-x-lang",
"-x-text-zoom", "-x-text-zoom",
"-moz-list-reversed",
"-moz-window-shadow", "-moz-window-shadow",
"-moz-window-opacity", "-moz-window-opacity",
"-moz-window-transform", "-moz-window-transform",

View file

@ -486,7 +486,6 @@ class Longhand(Property):
"MasonryAutoFlow", "MasonryAutoFlow",
"MozForceBrokenImageIcon", "MozForceBrokenImageIcon",
"text::MozControlCharacterVisibility", "text::MozControlCharacterVisibility",
"MozListReversed",
"MathDepth", "MathDepth",
"MozScriptMinSize", "MozScriptMinSize",
"MozScriptSizeMultiplier", "MozScriptSizeMultiplier",

View file

@ -83,14 +83,3 @@ ${helpers.predefined_type(
boxed=True, boxed=True,
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-image-region)", spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-image-region)",
)} )}
${helpers.predefined_type(
"-moz-list-reversed",
"MozListReversed",
"computed::MozListReversed::False",
engines="gecko",
animation_value_type="discrete",
enabled_in="ua",
spec="Internal implementation detail for <ol reversed>",
servo_restyle_damage="rebuild_and_reflow",
)}

View file

@ -6,7 +6,6 @@
#[cfg(feature = "gecko")] #[cfg(feature = "gecko")]
pub use crate::values::specified::list::ListStyleType; pub use crate::values::specified::list::ListStyleType;
pub use crate::values::specified::list::MozListReversed;
pub use crate::values::specified::list::Quotes; pub use crate::values::specified::list::Quotes;
impl Quotes { impl Quotes {

View file

@ -67,7 +67,6 @@ pub use self::length::{LengthOrAuto, LengthPercentageOrAuto, MaxSize, Size};
pub use self::length::{NonNegativeLengthPercentage, NonNegativeLengthPercentageOrAuto}; pub use self::length::{NonNegativeLengthPercentage, NonNegativeLengthPercentageOrAuto};
#[cfg(feature = "gecko")] #[cfg(feature = "gecko")]
pub use self::list::ListStyleType; pub use self::list::ListStyleType;
pub use self::list::MozListReversed;
pub use self::list::Quotes; pub use self::list::Quotes;
pub use self::motion::{OffsetPath, OffsetRotate}; pub use self::motion::{OffsetPath, OffsetRotate};
pub use self::outline::OutlineStyle; pub use self::outline::OutlineStyle;

View file

@ -199,27 +199,3 @@ impl Parse for Quotes {
} }
} }
} }
/// Specified and computed `-moz-list-reversed` property (for UA sheets only).
#[derive(
Clone,
Copy,
Debug,
Eq,
Hash,
MallocSizeOf,
Parse,
PartialEq,
SpecifiedValueInfo,
ToComputedValue,
ToCss,
ToResolvedValue,
ToShmem,
)]
#[repr(u8)]
pub enum MozListReversed {
/// the initial value
False,
/// exclusively used for <ol reversed> in our html.css UA sheet
True,
}

View file

@ -66,7 +66,6 @@ pub use self::length::{
}; };
#[cfg(feature = "gecko")] #[cfg(feature = "gecko")]
pub use self::list::ListStyleType; pub use self::list::ListStyleType;
pub use self::list::MozListReversed;
pub use self::list::Quotes; pub use self::list::Quotes;
pub use self::motion::{OffsetPath, OffsetRotate}; pub use self::motion::{OffsetPath, OffsetRotate};
pub use self::outline::OutlineStyle; pub use self::outline::OutlineStyle;

View file

@ -157,7 +157,6 @@ include = [
"TextOverflow", "TextOverflow",
"MozControlCharacterVisibility", "MozControlCharacterVisibility",
"RubyPosition", "RubyPosition",
"MozListReversed",
"Owned", "Owned",
"OwnedOrNull", "OwnedOrNull",
"Strong", "Strong",

View file

@ -44,7 +44,6 @@
pointer-events: inherit; pointer-events: inherit;
/* These properties are not included in 'all'. */ /* These properties are not included in 'all'. */
-moz-list-reversed: initial;
-moz-context-properties: initial; -moz-context-properties: initial;
-moz-control-character-visibility: initial; -moz-control-character-visibility: initial;
-moz-font-smoothing-background-color: initial; -moz-font-smoothing-background-color: initial;