mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
implement cssText
This commit is contained in:
parent
40b2d424c0
commit
ff995d739c
8 changed files with 42 additions and 37 deletions
|
@ -700,7 +700,7 @@ impl Element {
|
|||
|
||||
// this sync method is called upon modification of the style_attribute property,
|
||||
// therefore, it should not trigger subsequent mutation events
|
||||
fn sync_property_with_attrs_style(&self) {
|
||||
pub fn sync_property_with_attrs_style(&self) {
|
||||
let style_str = if let &Some(ref declarations) = &*self.style_attribute().borrow() {
|
||||
declarations.to_css_string()
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue