Fix insertRule crash by exposing getter on stylesheet's owner

This commit is contained in:
sbansal3096 2019-03-21 22:11:20 +05:30
parent e58226814f
commit 13eebbfe56
7 changed files with 79 additions and 4 deletions

View file

@ -75,6 +75,10 @@ impl CSSStyleSheet {
self.style_stylesheet.disabled()
}
pub fn get_owner(&self) -> &Element {
&*self.owner
}
pub fn set_disabled(&self, disabled: bool) {
if self.style_stylesheet.set_disabled(disabled) {
self.global()