diff options
author | Dan Fox <iamdanfox@gmail.com> | 2015-03-03 17:59:44 +0000 |
---|---|---|
committer | Dan Fox <iamdanfox@gmail.com> | 2015-03-03 17:59:44 +0000 |
commit | 564d12435af1a3a7324e5cdf0c0ead6ee705ed30 (patch) | |
tree | 228c4c5b3615bbfe06c3299a5c54a0e2ba0dd897 /components/layout/util.rs | |
parent | b424de2092b818c9ed76679ffcd6ecfa621e62ef (diff) | |
download | servo-564d12435af1a3a7324e5cdf0c0ead6ee705ed30.tar.gz servo-564d12435af1a3a7324e5cdf0c0ead6ee705ed30.zip |
Move ToGfxColor to display_list_builder.rs
Diffstat (limited to 'components/layout/util.rs')
-rw-r--r-- | components/layout/util.rs | 15 |
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) - } -} |