Revert "Using Color equality operators to streamline code"

This commit is contained in:
Martin Robinson 2015-02-03 15:07:30 -08:00
parent 728f723753
commit 8855a25780
2 changed files with 8 additions and 3 deletions

View file

@ -678,7 +678,10 @@ impl LayoutTask {
};
let black = color::black();
if element_bg_color != 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 {
color = element_bg_color;
break;
}