Skip to content

Commit 4ed2fcc

Browse files
committed
servo: Merge #16473 - Upgrade to rustc 1.18.0-nightly (5f13a3b54 2017-04-15) (from servo:rustup); r=emilio
This version enables [struct field reordering][1] which brings the size of the types for specified values of some CSS properties under the threshold such that they shouldn’t be boxed anymore, making unit tests fail. Simply unboxing them moves the test failure to Stylo’s unit tests, since the stable compiler used in that case does not do field re-ordering. Therefore, we manually reorder a couple fields to effectively bring this optimization to older compilers for a few specific types. [1]: rust-lang/rust#40377 Source-Repo: https://github.com/servo/servo Source-Revision: c453e2ef89b32798dabbb23b22cfd5a72dddf6a5 UltraBlame original commit: 55519369af2b2a65f2a5c2275522a8b1dc014953
1 parent 0444dd5 commit 4ed2fcc

File tree

11 files changed

+7
-255
lines changed

11 files changed

+7
-255
lines changed

servo/components/script/dom/element.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5322,11 +5322,6 @@ PropertyDeclaration
53225322
:
53235323
BorderTopWidth
53245324
(
5325-
Box
5326-
:
5327-
:
5328-
new
5329-
(
53305325
width_value
53315326
.
53325327
clone
@@ -5335,7 +5330,6 @@ clone
53355330
)
53365331
)
53375332
)
5338-
)
53395333
;
53405334
hints
53415335
.
@@ -5349,11 +5343,6 @@ PropertyDeclaration
53495343
:
53505344
BorderLeftWidth
53515345
(
5352-
Box
5353-
:
5354-
:
5355-
new
5356-
(
53575346
width_value
53585347
.
53595348
clone
@@ -5362,7 +5351,6 @@ clone
53625351
)
53635352
)
53645353
)
5365-
)
53665354
;
53675355
hints
53685356
.
@@ -5376,11 +5364,6 @@ PropertyDeclaration
53765364
:
53775365
BorderBottomWidth
53785366
(
5379-
Box
5380-
:
5381-
:
5382-
new
5383-
(
53845367
width_value
53855368
.
53865369
clone
@@ -5389,7 +5372,6 @@ clone
53895372
)
53905373
)
53915374
)
5392-
)
53935375
;
53945376
hints
53955377
.
@@ -5403,16 +5385,10 @@ PropertyDeclaration
54035385
:
54045386
BorderRightWidth
54055387
(
5406-
Box
5407-
:
5408-
:
5409-
new
5410-
(
54115388
width_value
54125389
)
54135390
)
54145391
)
5415-
)
54165392
;
54175393
}
54185394
}

servo/components/style/properties/longhand/border.mako.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,6 @@ side
459459
-
460460
width
461461
"
462-
boxed
463-
=
464-
"
465-
True
466-
"
467462
animation_type
468463
=
469464
"

servo/components/style/properties/longhand/box.mako.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15578,9 +15578,6 @@ extra_prefixes
1557815578
moz
1557915579
webkit
1558015580
"
15581-
boxed
15582-
=
15583-
True
1558415581
creates_stacking_context
1558515582
=
1558615583
True

servo/components/style/properties/longhand/column.mako.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,6 @@ extra_prefixes
147147
"
148148
moz
149149
"
150-
boxed
151-
=
152-
True
153150
animation_type
154151
=
155152
"
@@ -321,9 +318,6 @@ moz
321318
experimental
322319
=
323320
True
324-
boxed
325-
=
326-
True
327321
animation_type
328322
=
329323
"
@@ -455,11 +449,6 @@ products
455449
"
456450
gecko
457451
"
458-
boxed
459-
=
460-
"
461-
True
462-
"
463452
animation_type
464453
=
465454
"

servo/components/style/properties/longhand/inherited_text.mako.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3323,11 +3323,6 @@ letter
33233323
-
33243324
spacing
33253325
"
3326-
boxed
3327-
=
3328-
"
3329-
True
3330-
"
33313326
animation_type
33323327
=
33333328
"
@@ -9147,9 +9142,6 @@ products
91479142
"
91489143
gecko
91499144
"
9150-
boxed
9151-
=
9152-
True
91539145
animation_type
91549146
=
91559147
"
@@ -9371,11 +9363,6 @@ stroke
93719363
-
93729364
width
93739365
"
9374-
boxed
9375-
=
9376-
"
9377-
True
9378-
"
93799366
animation_type
93809367
=
93819368
"

servo/components/style/values/computed/length.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,9 @@ Length
411411
:
412412
Calc
413413
(
414+
range
414415
ref
415416
calc
416-
range
417417
)
418418
=
419419
>

servo/components/style/values/specified/length.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3921,11 +3921,11 @@ calc
39213921
notation
39223922
Calc
39233923
(
3924+
AllowedLengthType
39243925
Box
39253926
<
39263927
CalcLengthOrPercentage
39273928
>
3928-
AllowedLengthType
39293929
)
39303930
}
39313931
impl
@@ -3999,9 +3999,9 @@ Length
39993999
:
40004000
Calc
40014001
(
4002+
_
40024003
ref
40034004
calc
4004-
_
40054005
)
40064006
=
40074007
>
@@ -4071,9 +4071,9 @@ Length
40714071
:
40724072
Calc
40734073
(
4074+
_
40744075
ref
40754076
calc
4076-
_
40774077
)
40784078
=
40794079
>
@@ -6591,14 +6591,14 @@ Length
65916591
:
65926592
Calc
65936593
(
6594+
num_context
65946595
Box
65956596
:
65966597
:
65976598
new
65986599
(
65996600
calc
66006601
)
6601-
num_context
66026602
)
66036603
}
66046604
)
@@ -8516,8 +8516,8 @@ Length
85168516
:
85178517
Calc
85188518
(
8519-
l
85208519
_
8520+
l
85218521
)
85228522
=
85238523
>

servo/ports/geckolib/glue.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11069,11 +11069,6 @@ into
1106911069
BorderTopWidth
1107011070
=
1107111071
>
11072-
Box
11073-
:
11074-
:
11075-
new
11076-
(
1107711072
BorderWidth
1107811073
:
1107911074
:
@@ -11085,15 +11080,9 @@ into
1108511080
(
1108611081
)
1108711082
)
11088-
)
1108911083
BorderRightWidth
1109011084
=
1109111085
>
11092-
Box
11093-
:
11094-
:
11095-
new
11096-
(
1109711086
BorderWidth
1109811087
:
1109911088
:
@@ -11105,15 +11094,9 @@ into
1110511094
(
1110611095
)
1110711096
)
11108-
)
1110911097
BorderBottomWidth
1111011098
=
1111111099
>
11112-
Box
11113-
:
11114-
:
11115-
new
11116-
(
1111711100
BorderWidth
1111811101
:
1111911102
:
@@ -11125,15 +11108,9 @@ into
1112511108
(
1112611109
)
1112711110
)
11128-
)
1112911111
BorderLeftWidth
1113011112
=
1113111113
>
11132-
Box
11133-
:
11134-
:
11135-
new
11136-
(
1113711114
BorderWidth
1113811115
:
1113911116
:
@@ -11145,7 +11122,6 @@ into
1114511122
(
1114611123
)
1114711124
)
11148-
)
1114911125
MarginTop
1115011126
=
1115111127
>

servo/rust-commit-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
474f7a91eec8cba83b7eb7a578a7adb70614f877
1+
5f13a3b540ab6024665322d716e487c800645f24

0 commit comments

Comments
 (0)