diff options
Diffstat (limited to 'components/script/dom/htmlstyleelement.rs')
-rw-r--r-- | components/script/dom/htmlstyleelement.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/htmlstyleelement.rs b/components/script/dom/htmlstyleelement.rs index 0abfa43a877..8d8b7d8492e 100644 --- a/components/script/dom/htmlstyleelement.rs +++ b/components/script/dom/htmlstyleelement.rs @@ -31,7 +31,7 @@ use crate::script_runtime::CanGc; use crate::stylesheet_loader::{StylesheetLoader, StylesheetOwner}; #[dom_struct] -pub struct HTMLStyleElement { +pub(crate) struct HTMLStyleElement { htmlelement: HTMLElement, #[ignore_malloc_size_of = "Arc"] #[no_trace] @@ -65,7 +65,7 @@ impl HTMLStyleElement { } #[allow(crown::unrooted_must_root)] - pub fn new( + pub(crate) fn new( local_name: LocalName, prefix: Option<Prefix>, document: &Document, @@ -83,7 +83,7 @@ impl HTMLStyleElement { ) } - pub fn parse_own_css(&self) { + pub(crate) fn parse_own_css(&self) { let node = self.upcast::<Node>(); let element = self.upcast::<Element>(); assert!(node.is_connected()); @@ -144,7 +144,7 @@ impl HTMLStyleElement { // FIXME(emilio): This is duplicated with HTMLLinkElement::set_stylesheet. #[allow(crown::unrooted_must_root)] - pub fn set_stylesheet(&self, s: Arc<Stylesheet>) { + pub(crate) fn set_stylesheet(&self, s: Arc<Stylesheet>) { let stylesheets_owner = self.stylesheet_list_owner(); if let Some(ref s) = *self.stylesheet.borrow() { stylesheets_owner.remove_stylesheet(self.upcast(), s) @@ -154,11 +154,11 @@ impl HTMLStyleElement { stylesheets_owner.add_stylesheet(self.upcast(), s); } - pub fn get_stylesheet(&self) -> Option<Arc<Stylesheet>> { + pub(crate) fn get_stylesheet(&self) -> Option<Arc<Stylesheet>> { self.stylesheet.borrow().clone() } - pub fn get_cssom_stylesheet(&self) -> Option<DomRoot<CSSStyleSheet>> { + pub(crate) fn get_cssom_stylesheet(&self) -> Option<DomRoot<CSSStyleSheet>> { self.get_stylesheet().map(|sheet| { self.cssom_stylesheet.or_init(|| { CSSStyleSheet::new( |