Media UI basic functionality

This commit is contained in:
Fernando Jiménez Moreno 2019-04-16 11:46:55 +02:00
parent 1c02fc94a8
commit a664449681
10 changed files with 420 additions and 35 deletions

View file

@ -116,7 +116,11 @@ impl HTMLStyleElement {
.upcast::<Node>()
.containing_shadow_root() {
if shadow_root.is_user_agent_widget() {
(ServoUrl::parse(&format!("chrome://{:?}", window.get_url().to_string())).unwrap(), Origin::UserAgent)
(
ServoUrl::parse(&format!("chrome://{:?}", window.get_url().to_string()))
.unwrap(),
Origin::UserAgent,
)
} else {
(window.get_url(), Origin::Author)
}