mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Construct URLValue eagerly and share it between specified value and style structs.
This commit is contained in:
parent
fa5d76c395
commit
ecbc55ffcf
4 changed files with 42 additions and 28 deletions
|
@ -212,7 +212,7 @@ impl nsCSSValue {
|
|||
|
||||
/// Set to a url value
|
||||
pub fn set_url(&mut self, url: &SpecifiedUrl) {
|
||||
unsafe { bindings::Gecko_CSSValue_SetURL(self, url.for_ffi()) }
|
||||
unsafe { bindings::Gecko_CSSValue_SetURL(self, url.url_value.get()) }
|
||||
}
|
||||
|
||||
/// Set to an array of given length
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue