Skip to content

Commit b4700b1

Browse files
committed
Backed out 2 changesets (bug 1647845) for causing assertions in nsStyleStruct.cpp CLOSED TREE
Backed out changeset 1564d93002de (bug 1647845) Backed out changeset bc1815fb4405 (bug 1647845)
1 parent da3ea13 commit b4700b1

File tree

23 files changed

+14
-151
lines changed

23 files changed

+14
-151
lines changed

devtools/server/actors/animation-type-longhand.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ exports.ANIMATION_TYPE_FOR_LONGHANDS = [
228228
"padding-inline-start",
229229
"math-depth",
230230
"-moz-top-layer",
231-
"size",
232231
"transition-delay",
233232
"transition-duration",
234233
"transition-property",

devtools/shared/css/generated/properties-db.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3070,7 +3070,6 @@ exports.CSS_PROPERTIES = {
30703070
"-moz-outline-radius-bottomright",
30713071
"-moz-outline-radius-bottomleft",
30723072
"outline-offset",
3073-
"size",
30743073
"padding-top",
30753074
"padding-right",
30763075
"padding-bottom",
@@ -11077,10 +11076,6 @@ exports.PREFERENCES = [
1107711076
"scale",
1107811077
"layout.css.individual-transform.enabled"
1107911078
],
11080-
[
11081-
"size",
11082-
"layout.css.page-size.enabled"
11083-
],
1108411079
[
1108511080
"translate",
1108611081
"layout.css.individual-transform.enabled"

dom/bindings/GenerateCSS2PropertiesWebIDL.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ def generate(output, idlFilename, dataFile):
2525
for p in propList:
2626
if "Internal" in p.flags:
2727
continue
28-
29-
# Skip properties which aren't valid in style rules.
30-
if "Style" not in p.rules:
31-
continue
32-
3328
# Unfortunately, even some of the getters here are fallible
3429
# (e.g. on nsComputedDOMStyle).
3530
extendedAttrs = [

layout/style/ComputedStyle.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ nsChangeHint ComputedStyle::CalcStyleDifference(const ComputedStyle& aNewStyle,
173173
DO_STRUCT_DIFFERENCE(TextReset);
174174
DO_STRUCT_DIFFERENCE(Effects);
175175
DO_STRUCT_DIFFERENCE(Background);
176-
DO_STRUCT_DIFFERENCE(Page);
177176

178177
#undef DO_STRUCT_DIFFERENCE
179178
#undef DO_STRUCT_DIFFERENCE_WITH_ARGS

layout/style/GenerateServoCSSPropList.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,20 +100,11 @@ def generate_header(output, data):
100100
if not flags:
101101
flags = "CSSPropFlags(0)"
102102
params = [prop.name, prop.id, method, flags, pref]
103-
excludes = []
103+
104104
if is_internal:
105-
excludes.append("CSS_PROP_LIST_EXCLUDE_INTERNAL")
106-
if "Style" not in prop.rules:
107-
excludes.append("CSS_PROP_LIST_EXCLUDE_NOT_IN_STYLE")
108-
109-
if excludes:
110-
output.write(
111-
"#if {}\n".format(
112-
" || ".join("!defined " + exclude for exclude in excludes)
113-
)
114-
)
105+
output.write("#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL\n")
115106
output.write("{}({})\n".format(MACRO_NAMES[prop.type()], ", ".join(params)))
116-
if excludes:
107+
if is_internal:
117108
output.write("#endif\n")
118109

119110
output.write(

layout/style/ServoBindings.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ whitelist-types = [
308308
"nsStyleMargin",
309309
"nsStyleOutline",
310310
"nsStylePadding",
311-
"nsStylePage",
312311
"nsStylePosition",
313312
"nsStyleSides",
314313
"nsStyleSVG",
@@ -582,7 +581,6 @@ cbindgen-types = [
582581
{ gecko = "StyleFontSizeKeyword", servo = "crate::values::specified::font::FontSizeKeyword" },
583582
{ gecko = "StyleDefaultFontSizes", servo = "crate::gecko::wrapper::DefaultFontSizes" },
584583
{ gecko = "StyleCaptionSide", servo = "crate::values::computed::table::CaptionSide" },
585-
{ gecko = "StylePageSize", servo = "crate::values::computed::page::PageSize" },
586584
]
587585

588586
mapped-generic-types = [

layout/style/ServoCSSPropList.mako.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def _assign_slots(obj, args):
88

99

1010
class Longhand(object):
11-
__slots__ = ["name", "method", "id", "rules", "flags", "pref"]
11+
__slots__ = ["name", "method", "id", "flags", "pref"]
1212

1313
def __init__(self, *args):
1414
_assign_slots(self, args)
@@ -19,7 +19,7 @@ def type():
1919

2020

2121
class Shorthand(object):
22-
__slots__ = ["name", "method", "id", "rules", "flags", "pref", "subprops"]
22+
__slots__ = ["name", "method", "id", "flags", "pref", "subprops"]
2323

2424
def __init__(self, *args):
2525
_assign_slots(self, args)
@@ -30,7 +30,7 @@ def type():
3030

3131

3232
class Alias(object):
33-
__slots__ = ["name", "method", "alias_id", "prop_id", "rules", "flags", "pref"]
33+
__slots__ = ["name", "method", "alias_id", "prop_id", "flags", "pref"]
3434

3535
def __init__(self, *args):
3636
_assign_slots(self, args)
@@ -123,9 +123,6 @@ def exposed_on_getcs(prop):
123123
if prop.type() == "shorthand":
124124
return "SHORTHAND_IN_GETCS" in prop.flags
125125

126-
def rules(prop):
127-
return ", ".join('"{}"'.format(rule) for rule in prop.rule_types_allowed_names())
128-
129126
def flags(prop):
130127
result = []
131128
if prop.explicitly_enabled_in_chrome():
@@ -157,15 +154,15 @@ def sub_properties(prop):
157154

158155
data = [
159156
% for prop in data.longhands:
160-
Longhand("${prop.name}", "${method(prop)}", "${prop.ident}", [${rules(prop)}], [${flags(prop)}], ${pref(prop)}),
157+
Longhand("${prop.name}", "${method(prop)}", "${prop.ident}", [${flags(prop)}], ${pref(prop)}),
161158
% endfor
162159

163160
% for prop in data.shorthands:
164-
Shorthand("${prop.name}", "${prop.camel_case}", "${prop.ident}", [${rules(prop)}], [${flags(prop)}], ${pref(prop)},
161+
Shorthand("${prop.name}", "${prop.camel_case}", "${prop.ident}", [${flags(prop)}], ${pref(prop)},
165162
[${sub_properties(prop)}]),
166163
% endfor
167164

168165
% for prop in data.all_aliases():
169-
Alias("${prop.name}", "${prop.camel_case}", "${prop.ident}", "${prop.original.ident}", [${rules(prop)}], [], ${pref(prop)}),
166+
Alias("${prop.name}", "${prop.camel_case}", "${prop.ident}", "${prop.original.ident}", [], ${pref(prop)}),
170167
% endfor
171168
]

layout/style/nsDOMCSSDeclaration.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ class nsDOMCSSDeclaration : public nsICSSDeclaration {
107107
}
108108

109109
#define CSS_PROP_LIST_EXCLUDE_INTERNAL
110-
#define CSS_PROP_LIST_EXCLUDE_NOT_IN_STYLE
111110
#define CSS_PROP_LONGHAND(name_, id_, method_, ...) CSS_PROP(id_, method_)
112111
#define CSS_PROP_SHORTHAND(name_, id_, method_, ...) CSS_PROP(id_, method_)
113112
#define CSS_PROP_ALIAS(name_, aliasid_, id_, method_, ...) \
@@ -117,7 +116,6 @@ class nsDOMCSSDeclaration : public nsICSSDeclaration {
117116
#undef CSS_PROP_SHORTHAND
118117
#undef CSS_PROP_LONGHAND
119118
#undef CSS_PROP_LIST_EXCLUDE_INTERNAL
120-
#undef CSS_PROP_LIST_EXCLUDE_NOT_IN_STYLE
121119
#undef CSS_PROP
122120
#undef CSS_PROP_PUBLIC_OR_PRIVATE
123121

layout/style/nsStyleStruct.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,16 +1047,6 @@ bool nsStyleSVGReset::HasMask() const {
10471047
return false;
10481048
}
10491049

1050-
// --------------------
1051-
// nsStylePage
1052-
//
1053-
1054-
nsChangeHint nsStylePage::CalcDifference(const nsStylePage& aNewData) const {
1055-
MOZ_ASSERT_UNREACHABLE(
1056-
"Page styles should never be diffed. We do not dynamically update them");
1057-
return nsChangeHint{0};
1058-
}
1059-
10601050
// --------------------
10611051
// nsStylePosition
10621052
//

layout/style/nsStyleStruct.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -693,20 +693,6 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleList {
693693
mozilla::StyleMozListReversed mMozListReversed;
694694
};
695695

696-
struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStylePage {
697-
using StylePageSize = mozilla::StylePageSize;
698-
nsStylePage(const nsStylePage& aOther) = default;
699-
nsStylePage& operator=(const nsStylePage& aOther) = default;
700-
explicit nsStylePage(const mozilla::dom::Document&)
701-
: mSize(StylePageSize::Auto()) {}
702-
703-
static constexpr bool kHasTriggerImageLoads = false;
704-
nsChangeHint CalcDifference(const nsStylePage& aNewData) const;
705-
706-
// page-size property.
707-
StylePageSize mSize;
708-
};
709-
710696
struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStylePosition {
711697
using LengthPercentageOrAuto = mozilla::LengthPercentageOrAuto;
712698
using Position = mozilla::Position;

0 commit comments

Comments
 (0)