diff options
author | Martin Robinson <martin.james.robinson@gmail.com> | 2015-02-03 15:07:30 -0800 |
---|---|---|
committer | Martin Robinson <martin.james.robinson@gmail.com> | 2015-02-03 15:07:30 -0800 |
commit | 8855a257803c887b22be0f80a7646db94b813e1b (patch) | |
tree | 50778c988cb23b24fd7b6aefc9a02d0180037058 /components/layout/layout_task.rs | |
parent | 728f723753da49261c03e8061b748432f4a00182 (diff) | |
download | servo-8855a257803c887b22be0f80a7646db94b813e1b.tar.gz servo-8855a257803c887b22be0f80a7646db94b813e1b.zip |
Revert "Using Color equality operators to streamline code"
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 940f5a30ada..e2eea711de7 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -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; } |