mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -109,6 +109,7 @@ impl HTMLLinkElement {
|
|||
|
||||
// FIXME(emilio): These methods are duplicated with
|
||||
// HTMLStyleElement::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