mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Make StyleSheetListOwner an enum instead of a trait object
This commit is contained in:
parent
8b353ee3ce
commit
2350f0e3d1
7 changed files with 177 additions and 134 deletions
|
@ -138,6 +138,7 @@ impl HTMLStyleElement {
|
|||
}
|
||||
|
||||
// FIXME(emilio): This is duplicated with HTMLLinkElement::set_stylesheet.
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn set_stylesheet(&self, s: Arc<Stylesheet>) {
|
||||
let stylesheets_owner = stylesheets_owner_from_node(self);
|
||||
if let Some(ref s) = *self.stylesheet.borrow() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue