mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Support origins in CSSOM stylesheets
This commit is contained in:
parent
655a9fd7ce
commit
fd950a7309
8 changed files with 103 additions and 9 deletions
|
@ -191,6 +191,12 @@ impl StylesheetOwner for HTMLStyleElement {
|
|||
fn referrer_policy(&self) -> Option<ReferrerPolicy> {
|
||||
None
|
||||
}
|
||||
|
||||
fn set_origin_clean(&self, origin_clean: bool) {
|
||||
if let Some(stylesheet) = self.get_cssom_stylesheet() {
|
||||
stylesheet.set_origin_clean(origin_clean);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue