mirror of
https://github.com/servo/servo.git
synced 2025-07-28 01:30:32 +01:00
Revert changes to load media styles as UA styles
Revert changes to set chrome url of user agent widget styles
This commit is contained in:
parent
82339a9295
commit
142d42a833
2 changed files with 3 additions and 29 deletions
|
@ -141,16 +141,7 @@ 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 = 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 final_url = metadata.final_url;
|
||||
|
||||
let win = window_from_node(&*elem);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue