Implement RemoveProperty, SetProperty, and supported property indices.

This commit is contained in:
Josh Matthews 2014-12-11 19:54:47 -05:00
parent acf86a65e4
commit 9d82e06e64
6 changed files with 173 additions and 70 deletions

View file

@ -5,6 +5,7 @@
// This file is a Mako template: http://www.makotemplates.org/
pub use std::ascii::AsciiExt;
use std::fmt;
use std::fmt::Show;
use servo_util::logical_geometry::{WritingMode, LogicalMargin};
@ -2673,6 +2674,12 @@ impl PropertyDeclaration {
}
}
impl Show for PropertyDeclaration {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}: {}", self.name(), self.value())
}
}
pub mod style_structs {
use super::longhands;