aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/lib.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-04-23 11:07:48 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-04-27 10:41:55 +0200
commitf68e2fded92e769a1fc0d5bdc963f47da366d651 (patch)
tree9482e5104d03ecbf4bbc4626694389ca9de10e17 /components/layout_thread/lib.rs
parent10fb8e61c77fcb2ad1adfe517aa08ecbe64d4db6 (diff)
downloadservo-f68e2fded92e769a1fc0d5bdc963f47da366d651.tar.gz
servo-f68e2fded92e769a1fc0d5bdc963f47da366d651.zip
Propagate quirks mode all the way to ParserContext
The quirks mode is still not properly propagated in geckolib.
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r--components/layout_thread/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs
index e69e55512d4..30d59180a3c 100644
--- a/components/layout_thread/lib.rs
+++ b/components/layout_thread/lib.rs
@@ -1589,7 +1589,8 @@ fn get_ua_stylesheets() -> Result<UserAgentStylesheets, &'static str> {
MediaList::empty(),
shared_lock.clone(),
None,
- &NullReporter))
+ &NullReporter,
+ QuirksMode::NoQuirks))
}
let shared_lock = SharedRwLock::new();
@@ -1602,7 +1603,7 @@ fn get_ua_stylesheets() -> Result<UserAgentStylesheets, &'static str> {
for &(ref contents, ref url) in &opts::get().user_stylesheets {
user_or_user_agent_stylesheets.push(Stylesheet::from_bytes(
&contents, url.clone(), None, None, Origin::User, MediaList::empty(),
- shared_lock.clone(), None, &RustLogReporter));
+ shared_lock.clone(), None, &RustLogReporter, QuirksMode::NoQuirks));
}
let quirks_mode_stylesheet = try!(parse_ua_stylesheet(&shared_lock, "quirks-mode.css"));