diff options
author | Adenilson Cavalcanti <cavalcantii@gmail.com> | 2015-02-03 18:14:42 -0800 |
---|---|---|
committer | Adenilson Cavalcanti <cavalcantii@gmail.com> | 2015-02-03 18:14:42 -0800 |
commit | 3088b8fc30b700117ec3e96b88651b887947ad93 (patch) | |
tree | f3ba9404ea9759caf894a956c3f3737c819e899e /components/layout/layout_task.rs | |
parent | ffa23088fffab788a73eeb004ec11404c7633e05 (diff) | |
download | servo-3088b8fc30b700117ec3e96b88651b887947ad93.tar.gz servo-3088b8fc30b700117ec3e96b88651b887947ad93.zip |
Using the new equality operator in LayoutTask.
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 4 |
1 files changed, 1 insertions, 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; |