mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +01:00
Barebones media UI
This commit is contained in:
parent
4f6b86f9f5
commit
1c02fc94a8
11 changed files with 177 additions and 25 deletions
|
@ -141,7 +141,15 @@ impl FetchResponseListener for StylesheetContext {
|
|||
// TODO: Get the actual value. http://dev.w3.org/csswg/css-syntax/#environment-encoding
|
||||
let environment_encoding = UTF_8;
|
||||
let protocol_encoding_label = metadata.charset.as_ref().map(|s| &**s);
|
||||
let final_url = metadata.final_url;
|
||||
let final_url = if let Some(ref shadow_root) = self.shadow_root {
|
||||
if shadow_root.root().is_user_agent_widget() {
|
||||
ServoUrl::parse(&format!("chrome://{:?}", metadata.final_url.to_string())).unwrap()
|
||||
} else {
|
||||
metadata.final_url
|
||||
}
|
||||
} else {
|
||||
metadata.final_url
|
||||
};
|
||||
|
||||
let win = window_from_node(&*elem);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue