mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix insertRule crash by exposing getter on stylesheet's owner
This commit is contained in:
parent
e58226814f
commit
13eebbfe56
7 changed files with 79 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue