From 3088b8fc30b700117ec3e96b88651b887947ad93 Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Date: Tue, 3 Feb 2015 18:14:42 -0800 Subject: [PATCH] Using the new equality operator in LayoutTask. --- components/layout/layout_task.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;