mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Bug 1325878: Pass the MediaList down to Servo, making <style media> work. r=xidorn
MozReview-Commit-ID: BUCSQJs2CNI Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
482740bb11
commit
ac7bc414d9
14 changed files with 63 additions and 43 deletions
|
@ -12,6 +12,7 @@ use media_queries::MediaList;
|
|||
use self::encoding::{EncodingRef, DecoderTrap};
|
||||
use shared_lock::SharedRwLock;
|
||||
use std::str;
|
||||
use std::sync::Arc;
|
||||
use stylesheets::{Stylesheet, StylesheetLoader, Origin, UrlExtraData};
|
||||
|
||||
struct RustEncoding;
|
||||
|
@ -62,7 +63,7 @@ impl Stylesheet {
|
|||
Stylesheet::from_str(&string,
|
||||
url_data,
|
||||
origin,
|
||||
media,
|
||||
Arc::new(shared_lock.wrap(media)),
|
||||
shared_lock,
|
||||
stylesheet_loader,
|
||||
error_reporter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue