mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Stylo: Pass content's image_value to gecko.
This commit is contained in:
parent
f7e3c534e3
commit
c04195f79e
2 changed files with 7 additions and 3 deletions
|
@ -4160,8 +4160,11 @@ clip-path
|
|||
// When we support <custom-ident> values for list-style-type this will need to be updated
|
||||
array[2].set_atom_ident(style.to_css_string().into());
|
||||
}
|
||||
ContentItem::Url(url) => {
|
||||
unsafe { bindings::Gecko_SetContentDataImage(&mut self.gecko.mContents[i], url.for_ffi()) }
|
||||
ContentItem::Url(ref url) => {
|
||||
unsafe {
|
||||
bindings::Gecko_SetContentDataImageValue(&mut self.gecko.mContents[i],
|
||||
url.image_value.clone().unwrap().get())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue