mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Read user-agent.css at run time. Fix #3516
This commit is contained in:
parent
543f11b62b
commit
cf1785ecb1
6 changed files with 39 additions and 12 deletions
|
@ -10,6 +10,7 @@ use sync::Arc;
|
|||
use url::Url;
|
||||
|
||||
use servo_util::bloom::BloomFilter;
|
||||
use servo_util::resource_files::read_resource_file;
|
||||
use servo_util::smallvec::VecLike;
|
||||
use servo_util::sort;
|
||||
use string_cache::Atom;
|
||||
|
@ -279,7 +280,7 @@ impl Stylist {
|
|||
rules_source_order: 0u,
|
||||
};
|
||||
let ua_stylesheet = Stylesheet::from_bytes(
|
||||
include_bin!("user-agent.css"),
|
||||
read_resource_file(["user-agent.css"]).unwrap().as_slice(),
|
||||
Url::parse("chrome:///user-agent.css").unwrap(),
|
||||
None,
|
||||
None);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue