aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/util.rs')
-rw-r--r--components/layout/util.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/components/layout/util.rs b/components/layout/util.rs
index 85c0e1a60d9..d8a2c3f38b9 100644
--- a/components/layout/util.rs
+++ b/components/layout/util.rs
@@ -9,14 +9,11 @@ use incremental::RestyleDamage;
use parallel::DomParallelInfo;
use wrapper::{LayoutNode, TLayoutNode};
-use azure::azure_hl::Color;
-use gfx;
use script::dom::node::SharedLayoutData;
use script::layout_interface::LayoutChan;
use std::mem;
use std::cell::{Ref, RefMut};
use style::properties::ComputedValues;
-use style;
use std::sync::Arc;
/// Data that layout associates with a node.
@@ -118,15 +115,3 @@ impl<'ln> LayoutDataAccess for LayoutNode<'ln> {
}
}
}
-
-/// Allows a CSS color to be converted into a graphics color.
-pub trait ToGfxColor {
- /// Converts a CSS color to a graphics color.
- fn to_gfx_color(&self) -> Color;
-}
-
-impl ToGfxColor for style::values::RGBA {
- fn to_gfx_color(&self) -> Color {
- gfx::color::rgba(self.red, self.green, self.blue, self.alpha)
- }
-}