Backed out changeset 5e2df12572bc (bug 1798323) for causing failures in test_css-properties-db.js CLOSED TREE

This commit is contained in:
Noemi Erli 2022-12-19 18:25:03 +02:00
Родитель 4da3c32876
Коммит 1fd46e75dd
14 изменённых файлов: 4 добавлений и 73 удалений

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

@ -242,7 +242,6 @@ exports.ANIMATION_TYPE_FOR_LONGHANDS = [
"padding-block-start",
"padding-inline-end",
"padding-inline-start",
"page-orientation",
"math-depth",
"-moz-box-layout",
"-moz-top-layer",

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

@ -3154,7 +3154,6 @@ exports.CSS_PROPERTIES = {
"outline-width",
"outline-offset",
"page",
"page-orientation",
"padding-top",
"padding-right",
"padding-bottom",
@ -9740,23 +9739,6 @@ exports.CSS_PROPERTIES = {
"unset"
]
},
"page-orientation": {
"isInherited": false,
"subproperties": [
"page-orientation"
],
"supports": [],
"values": [
"inherit",
"initial",
"revert",
"revert-layer",
"rotate-left",
"rotate-right",
"unset",
"upright"
]
},
"paint-order": {
"isInherited": true,
"subproperties": [
@ -11986,10 +11968,6 @@ exports.PREFERENCES = [
"overflow-anchor",
"layout.css.scroll-anchoring.enabled"
],
[
"page-orientation",
"layout.css.page-orientation.enabled"
],
[
"scrollbar-gutter",
"layout.css.scrollbar-gutter.enabled"

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

@ -614,7 +614,6 @@ cbindgen-types = [
{ gecko = "StyleFontSizeKeyword", servo = "crate::values::specified::font::FontSizeKeyword" },
{ gecko = "StyleCaptionSide", servo = "crate::values::computed::table::CaptionSide" },
{ gecko = "StylePageName", servo = "crate::values::specified::page::PageName" },
{ gecko = "StylePageOrientation", servo = "crate::values::generics::page::PageOrientation" },
{ gecko = "StylePageSize", servo = "crate::values::computed::page::PageSize" },
{ gecko = "StyleDProperty", servo = "crate::values::specified::svg::DProperty" },
{ gecko = "StyleImageRendering", servo = "crate::values::computed::ImageRendering" },

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

@ -1057,8 +1057,7 @@ bool nsStyleSVGReset::HasMask() const {
nsChangeHint nsStylePage::CalcDifference(const nsStylePage& aNewData) const {
// Page rule styling only matters when printing or using print preview.
if (aNewData.mSize != mSize || aNewData.mPage != mPage ||
aNewData.mPageOrientation != mPageOrientation) {
if (aNewData.mSize != mSize || aNewData.mPage != mPage) {
return nsChangeHint_NeutralChange;
}
return nsChangeHint_Empty;

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

@ -728,15 +728,12 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleList {
};
struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStylePage {
using StylePageOrientation = mozilla::StylePageOrientation;
using StylePageSize = mozilla::StylePageSize;
using StylePageName = mozilla::StylePageName;
nsStylePage(const nsStylePage& aOther) = default;
nsStylePage& operator=(const nsStylePage& aOther) = default;
explicit nsStylePage(const mozilla::dom::Document&)
: mSize(StylePageSize::Auto()),
mPage(StylePageName::Auto()),
mPageOrientation(StylePageOrientation::Upright) {}
: mSize(StylePageSize::Auto()), mPage(StylePageName::Auto()) {}
static constexpr bool kHasTriggerImageLoads = false;
nsChangeHint CalcDifference(const nsStylePage& aNewData) const;
@ -745,8 +742,6 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStylePage {
StylePageSize mSize;
// page-name property.
StylePageName mPage;
// page-orientation property.
StylePageOrientation mPageOrientation;
};
struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStylePosition {

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

@ -8545,13 +8545,6 @@
value: true
mirror: always
# Enables support for the page-orientation property inside of CSS @page rules.
- name: layout.css.page-orientation.enabled
type: RelaxedAtomicBool
value: true
mirror: always
rust: true
# Enables support for the size property inside of CSS @page rules.
- name: layout.css.page-size.enabled
type: RelaxedAtomicBool

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

@ -496,7 +496,6 @@ class Longhand(Property):
"OverflowClipBox",
"OverflowWrap",
"OverscrollBehavior",
"PageOrientation",
"Percentage",
"PrintColorAdjust",
"Resize",

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

@ -29,15 +29,3 @@ ${helpers.predefined_type(
spec="https://drafts.csswg.org/css-page-3/#using-named-pages",
animation_value_type="discrete",
)}
${helpers.predefined_type(
"page-orientation",
"PageOrientation",
"computed::PageOrientation::Upright",
engines="gecko",
gecko_pref="layout.css.page-orientation.enabled",
initial_specified_value="specified::PageOrientation::Upright",
spec="https://drafts.csswg.org/css-page-3/#page-orientation-prop",
animation_value_type="none",
rule_types_allowed=PAGE_RULE,
)}

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

@ -81,7 +81,7 @@ pub use self::list::ListStyleType;
pub use self::list::Quotes;
pub use self::motion::{OffsetPath, OffsetRotate};
pub use self::outline::OutlineStyle;
pub use self::page::{PageName, PageOrientation, PageSize, PageSizeOrientation, PaperSize};
pub use self::page::{PageName, PageSize, PageSizeOrientation, PaperSize};
pub use self::percentage::{NonNegativePercentage, Percentage};
pub use self::position::AspectRatio;
pub use self::position::{

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

@ -11,7 +11,6 @@ use crate::values::generics::size::Size2D;
use crate::values::specified::page as specified;
pub use generics::page::GenericPageSize;
pub use generics::page::PageOrientation;
pub use generics::page::PageSizeOrientation;
pub use generics::page::PaperSize;
pub use specified::PageName;

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

@ -70,22 +70,6 @@ impl PaperSize {
}
}
/// Page orientation names.
///
/// https://drafts.csswg.org/css-page-3/#page-orientation-prop
#[derive(
Clone, Copy, Debug, Eq, MallocSizeOf, Parse, PartialEq, SpecifiedValueInfo, ToComputedValue, ToCss, ToResolvedValue, ToShmem,
)]
#[repr(u8)]
pub enum PageOrientation {
/// upright
Upright,
/// rotate-left (counter-clockwise)
RotateLeft,
/// rotate-right (clockwise)
RotateRight,
}
/// Paper orientation
///
/// https://drafts.csswg.org/css-page-3/#page-size-prop

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

@ -72,7 +72,7 @@ pub use self::list::ListStyleType;
pub use self::list::Quotes;
pub use self::motion::{OffsetPath, OffsetRotate};
pub use self::outline::OutlineStyle;
pub use self::page::{PageName, PageOrientation, PageSize, PageSizeOrientation, PaperSize};
pub use self::page::{PageName, PageSize, PageSizeOrientation, PaperSize};
pub use self::percentage::{NonNegativePercentage, Percentage};
pub use self::position::AspectRatio;
pub use self::position::{

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

@ -11,7 +11,6 @@ use crate::values::{generics, CustomIdent};
use cssparser::Parser;
use style_traits::ParseError;
pub use generics::page::PageOrientation;
pub use generics::page::PageSizeOrientation;
pub use generics::page::PaperSize;
/// Specified value of the @page size descriptor

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

@ -245,7 +245,6 @@ include = [
"DefaultFontSizes",
"RuleChangeKind",
"PageName",
"PageOrientation",
"PageSize",
"DProperty",
"ImageRendering",