aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlbodyelement.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-12-11 09:58:00 -0800
committerPatrick Walton <pcwalton@mimiga.net>2014-12-15 18:09:44 -0800
commita1ea44b294e73f4397887fe806fc5bc95499efda (patch)
treea32b122e99c87a1f98e6b05c087fee00411cef36 /components/script/dom/htmlbodyelement.rs
parent17835ba0cb446e1d542c7e5347210c03158a9fec (diff)
downloadservo-a1ea44b294e73f4397887fe806fc5bc95499efda.tar.gz
servo-a1ea44b294e73f4397887fe806fc5bc95499efda.zip
style: Address review comments relating to `bgcolor` and column spans
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r--components/script/dom/htmlbodyelement.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs
index ebfe1e8025a..917b02913a7 100644
--- a/components/script/dom/htmlbodyelement.rs
+++ b/components/script/dom/htmlbodyelement.rs
@@ -17,13 +17,14 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node};
use dom::virtualmethods::VirtualMethods;
-use servo_util::str::{mod, DOMString, SimpleColor};
+use cssparser::RGBA;
+use servo_util::str::{mod, DOMString};
use std::cell::Cell;
#[dom_struct]
pub struct HTMLBodyElement {
htmlelement: HTMLElement,
- background_color: Cell<Option<SimpleColor>>,
+ background_color: Cell<Option<RGBA>>,
}
impl HTMLBodyElementDerived for EventTarget {
@@ -65,11 +66,11 @@ impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
}
pub trait HTMLBodyElementHelpers {
- fn get_background_color(&self) -> Option<SimpleColor>;
+ fn get_background_color(&self) -> Option<RGBA>;
}
impl HTMLBodyElementHelpers for HTMLBodyElement {
- fn get_background_color(&self) -> Option<SimpleColor> {
+ fn get_background_color(&self) -> Option<RGBA> {
self.background_color.get()
}
}