mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Implement ToCss serialization for CSSRules
This commit is contained in:
parent
22aebdf5d4
commit
fdbadcdce2
10 changed files with 198 additions and 28 deletions
|
@ -12,6 +12,7 @@ use dom::window::Window;
|
|||
use parking_lot::RwLock;
|
||||
use std::sync::Arc;
|
||||
use style::stylesheets::KeyframesRule;
|
||||
use style_traits::ToCss;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct CSSKeyframesRule {
|
||||
|
@ -44,7 +45,6 @@ impl SpecificCSSRule for CSSKeyframesRule {
|
|||
}
|
||||
|
||||
fn get_css(&self) -> DOMString {
|
||||
// self.keyframesrule.read().to_css_string().into()
|
||||
"".into()
|
||||
self.keyframesrule.read().to_css_string().into()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue