diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 9a19a84c6e1..cd2328df866 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -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;