mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Using the new equality operator in LayoutTask.
This commit is contained in:
parent
ffa23088ff
commit
3088b8fc30
1 changed files with 1 additions and 3 deletions
|
@ -678,9 +678,7 @@ impl LayoutTask {
|
|||
};
|
||||
|
||||
let black = color::transparent_black();
|
||||
// TODO: Use equality operators when we sync with rust-azure.
|
||||
if element_bg_color.r != black.r || element_bg_color.g != black.g ||
|
||||
element_bg_color.b != black.b || element_bg_color.a != black.a {
|
||||
if element_bg_color != black {
|
||||
|
||||
color = element_bg_color;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue