mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Add a style property to HTMLElement.
This commit is contained in:
parent
2cfa8e85a6
commit
2e14b653bf
5 changed files with 62 additions and 9 deletions
|
@ -4,8 +4,8 @@
|
|||
|
||||
use dom::bindings::codegen::Bindings::CSSStyleDeclarationBinding::CSSStyleDeclarationMethods;
|
||||
use dom::bindings::error::{ErrorResult, Fallible};
|
||||
use dom::bindings::utils::{Reflectable, Reflector};
|
||||
use dom::bindings::js::JSRef;
|
||||
use dom::bindings::utils::{Reflectable, Reflector};
|
||||
use servo_util::str::DOMString;
|
||||
use string_cache::atom::Atom;
|
||||
use std::ascii::AsciiExt;
|
||||
|
@ -44,6 +44,14 @@ fn get_declaration(_property: &Atom) -> Option<Declaration> {
|
|||
None
|
||||
}
|
||||
|
||||
impl CSSStyleDeclaration {
|
||||
pub fn new_inherited() -> CSSStyleDeclaration {
|
||||
CSSStyleDeclaration {
|
||||
reflector_: Reflector::new()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
|
||||
fn CssText(self) -> DOMString {
|
||||
"".to_string()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue