mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Address review comments relating to bgcolor
and column spans
This commit is contained in:
parent
17835ba0cb
commit
a1ea44b294
33 changed files with 712 additions and 422 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue