Skip to content

Commit 98db377

Browse files
committed
servo: Merge #4829 - Revert "Using Color equality operators to streamline code" (from servo:revert-4825-usingColorOperators01); r=jdm
Reverts servo/servo#4825 I merged this incorrectly via the big green button and busted the tree pretty badly. Adenilson has committed to fixing the issue in rust-azure and then relanding this in a fixed state. Source-Repo: https://github.com/servo/servo Source-Revision: e48eb87eb40545f361c62d2e81118435430d0adb UltraBlame original commit: bc0d9c031de4c09d6549097c3f946b95b7d237e1
1 parent 4bf35bd commit 98db377

File tree

2 files changed

+133
-0
lines changed

2 files changed

+133
-0
lines changed

servo/components/gfx/paint_context.rs

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6247,11 +6247,53 @@ black
62476247
)
62486248
;
62496249
;
6250+
/
6251+
/
6252+
TODO
6253+
(
6254+
Savago
6255+
)
6256+
:
6257+
Use
6258+
equality
6259+
operators
6260+
when
6261+
we
6262+
sync
6263+
with
6264+
rust
6265+
-
6266+
azure
6267+
.
62506268
if
62516269
color
6270+
.
6271+
r
62526272
!
62536273
=
62546274
darker_color
6275+
.
6276+
r
6277+
|
6278+
|
6279+
color
6280+
.
6281+
g
6282+
!
6283+
=
6284+
darker_color
6285+
.
6286+
g
6287+
|
6288+
|
6289+
color
6290+
.
6291+
b
6292+
!
6293+
=
6294+
darker_color
6295+
.
6296+
b
62556297
{
62566298
darker_color
62576299
=
@@ -6629,11 +6671,53 @@ black
66296671
(
66306672
)
66316673
;
6674+
/
6675+
/
6676+
TODO
6677+
(
6678+
Savago
6679+
)
6680+
:
6681+
Use
6682+
equality
6683+
operators
6684+
when
6685+
we
6686+
sync
6687+
with
6688+
rust
6689+
-
6690+
azure
6691+
.
66326692
if
66336693
color
6694+
.
6695+
r
66346696
!
66356697
=
66366698
scaled_color
6699+
.
6700+
r
6701+
|
6702+
|
6703+
color
6704+
.
6705+
g
6706+
!
6707+
=
6708+
scaled_color
6709+
.
6710+
g
6711+
|
6712+
|
6713+
color
6714+
.
6715+
b
6716+
!
6717+
=
6718+
scaled_color
6719+
.
6720+
b
66376721
{
66386722
scaled_color
66396723
=

servo/components/layout/layout_task.rs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4941,11 +4941,60 @@ black
49414941
(
49424942
)
49434943
;
4944+
/
4945+
/
4946+
TODO
4947+
:
4948+
Use
4949+
equality
4950+
operators
4951+
when
4952+
we
4953+
sync
4954+
with
4955+
rust
4956+
-
4957+
azure
4958+
.
49444959
if
49454960
element_bg_color
4961+
.
4962+
r
49464963
!
49474964
=
49484965
black
4966+
.
4967+
r
4968+
|
4969+
|
4970+
element_bg_color
4971+
.
4972+
g
4973+
!
4974+
=
4975+
black
4976+
.
4977+
g
4978+
|
4979+
|
4980+
element_bg_color
4981+
.
4982+
b
4983+
!
4984+
=
4985+
black
4986+
.
4987+
b
4988+
|
4989+
|
4990+
element_bg_color
4991+
.
4992+
a
4993+
!
4994+
=
4995+
black
4996+
.
4997+
a
49494998
{
49504999
color
49515000
=

0 commit comments

Comments
 (0)