Backed out changeset e1b316eca9ec (bug 1901374) for causing mochitest failures on test_animation-type-longhand.html

This commit is contained in:
pstanciu 2024-06-12 00:42:25 +03:00
Родитель 74cc64bfc2
Коммит 0ad2e3fd7b
12 изменённых файлов: 15 добавлений и 82 удалений

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

@ -16512,23 +16512,6 @@ use.counter.css.page:
send_in_pings:
- use-counters
css_field_sizing:
type: counter
description: >
Whether a page used the CSS property field-sizing.
Compare against `use.counter.top_level_content_documents_destroyed`
to calculate the rate.
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1852098
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1852098
notification_emails:
- dom-core@mozilla.com
- emilio@mozilla.com
expires: never
send_in_pings:
- use-counters
css_flex_direction:
type: counter
description: >
@ -28465,23 +28448,6 @@ use.counter.css.doc:
send_in_pings:
- use-counters
css_field_sizing:
type: counter
description: >
Whether a document used the CSS property field-sizing.
Compare against `use.counter.content_documents_destroyed`
to calculate the rate.
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1852098
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1852098
notification_emails:
- dom-core@mozilla.com
- emilio@mozilla.com
expires: never
send_in_pings:
- use-counters
css_flex_direction:
type: counter
description: >

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

@ -139,7 +139,6 @@ rusty-enums = [
"mozilla::StyleListStylePosition",
"mozilla::StylePointerEvents",
"mozilla::StyleScrollbarWidth",
"mozilla::StyleFieldSizing",
"mozilla::StyleWhiteSpaceCollapse",
"mozilla::StyleTextWrapMode",
"mozilla::StyleTextRendering",

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

@ -130,12 +130,6 @@ enum class StyleScrollbarWidth : uint8_t {
None,
};
// field-sizing
enum class StyleFieldSizing : bool {
Fixed,
Content,
};
// Shape source type
enum class StyleShapeSourceType : uint8_t {
None,

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

@ -3113,8 +3113,7 @@ nsStyleUIReset::nsStyleUIReset()
nsStyleAutoArray<StyleViewTimeline>::WITH_SINGLE_INITIAL_ELEMENT),
mViewTimelineNameCount(1),
mViewTimelineAxisCount(1),
mViewTimelineInsetCount(1),
mFieldSizing(StyleFieldSizing::Fixed) {
mViewTimelineInsetCount(1) {
MOZ_COUNT_CTOR(nsStyleUIReset);
}
@ -3153,8 +3152,7 @@ nsStyleUIReset::nsStyleUIReset(const nsStyleUIReset& aSource)
mViewTimelines(aSource.mViewTimelines.Clone()),
mViewTimelineNameCount(aSource.mViewTimelineNameCount),
mViewTimelineAxisCount(aSource.mViewTimelineAxisCount),
mViewTimelineInsetCount(aSource.mViewTimelineInsetCount),
mFieldSizing(aSource.mFieldSizing) {
mViewTimelineInsetCount(aSource.mViewTimelineInsetCount) {
MOZ_COUNT_CTOR(nsStyleUIReset);
}
@ -3168,9 +3166,6 @@ nsChangeHint nsStyleUIReset::CalcDifference(
if (mMozSubtreeHiddenOnlyVisually != aNewData.mMozSubtreeHiddenOnlyVisually) {
hint |= nsChangeHint_RepaintFrame;
}
if (mFieldSizing != aNewData.mFieldSizing) {
hint |= nsChangeHint_NeutralChange;
}
if (mScrollbarWidth != aNewData.mScrollbarWidth) {
// For scrollbar-width change, we need some special handling similar
// to overflow properties. Specifically, we may need to reconstruct

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

@ -1737,8 +1737,6 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleUIReset {
uint32_t mViewTimelineNameCount;
uint32_t mViewTimelineAxisCount;
uint32_t mViewTimelineInsetCount;
mozilla::StyleFieldSizing mFieldSizing;
};
struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleUI {

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

@ -12,7 +12,6 @@ prefs = [
"layout.css.basic-shape-xywh.enabled=true",
"layout.css.transform-box-content-stroke.enabled=true",
"layout.css.transition-behavior.enabled=true",
"layout.css.field-sizing.enabled=true",
]
support-files = [
"animation_utils.js",

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

@ -14319,19 +14319,6 @@ if (IsCSSPropertyPrefEnabled("layout.css.transition-behavior.enabled")) {
}
}
if (IsCSSPropertyPrefEnabled("layout.css.field-sizing.enabled")) {
Object.assign(gCSSProperties, {
"field-sizing": {
domProp: "fieldSizing",
inherited: false,
type: CSS_TYPE_LONGHAND,
initial_values: ["fixed"],
other_values: ["content"],
invalid_values: ["none", "auto"],
},
});
}
// Copy aliased properties' fields from their alias targets. Keep this logic
// at the bottom of this file to ensure all the aliased properties are
// processed.

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

@ -9547,12 +9547,6 @@
value: false
mirror: always
# field-sizing CSS property
- name: layout.css.field-sizing.enabled
type: RelaxedAtomicBool
value: false
mirror: always
# Whether supports() conditions in @import is enabled
- name: layout.css.import-supports.enabled
type: RelaxedAtomicBool

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

@ -432,14 +432,3 @@ ${helpers.predefined_type(
rule_types_allowed=DEFAULT_RULES_EXCEPT_KEYFRAME,
affects="",
)}
${helpers.single_keyword(
"field-sizing",
"fixed content",
engines="gecko",
gecko_enum_prefix="StyleFieldSizing",
animation_value_type="discrete",
gecko_pref="layout.css.field-sizing.enabled",
spec="https://drafts.csswg.org/css-ui/#field-sizing",
affects="layout",
)}

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

@ -1 +1 @@
prefs: [intl.icu4x.segmenter.enabled:true,layout.css.field-sizing.enabled:true]
prefs: [intl.icu4x.segmenter.enabled:true]

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

@ -0,0 +1,6 @@
[field-sizing-computed.html]
[Property field-sizing value 'fixed']
expected: FAIL
[Property field-sizing value 'content']
expected: FAIL

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

@ -0,0 +1,6 @@
[field-sizing-valid.html]
[e.style['field-sizing'\] = "fixed" should set the property value]
expected: FAIL
[e.style['field-sizing'\] = "content" should set the property value]
expected: FAIL