Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest Rust #435

Merged
merged 10 commits into from May 10, 2013

Change FuzzyEq to ApproxEq.

  • Loading branch information
metajack committed May 10, 2013
commit 4d0c20246a6171d8e29a63ef79b827ad56cbb350
@@ -30,7 +30,7 @@ use servo_net::image::holder::ImageHolder;
use servo_net::local_image_cache::LocalImageCache;
use servo_util::range::*;
use std::arc;
use std::cmp::FuzzyEq;
use core::cmp::ApproxEq;
use std::net::url::Url;

/// Render boxes (`struct RenderBox`) are the leaves of the layout tree. They cannot position
@@ -650,7 +650,7 @@ pub impl RenderBox {
let nearest_ancestor_element = self.nearest_ancestor_element();

let bgcolor = nearest_ancestor_element.style().background_color();
if !bgcolor.alpha.fuzzy_eq(&0.0) {
if !bgcolor.alpha.approx_eq(&0.0) {
let mut l = list.take(); // FIXME: use with_mut_ref when available
l.append_item(~DisplayItem::new_SolidColor(absolute_bounds, bgcolor.to_gfx_color()));
list.put_back(l);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.