diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-01-14 23:34:49 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-01-17 14:05:23 +0100 |
commit | 5b5243b8afa3c3a757c892285fffb65354fc429d (patch) | |
tree | 98311fbd8ad88f9b0b4d529c07b57fa9c83dc105 /components/style/media_queries.rs | |
parent | 5d6ac65e04f4d03d2b1fbbe45cd1a01dbc6bbe28 (diff) | |
download | servo-5b5243b8afa3c3a757c892285fffb65354fc429d.tar.gz servo-5b5243b8afa3c3a757c892285fffb65354fc429d.zip |
Bug 1331213: Bootstrap a Gecko-side Device, and track it's dirtiness manually in the per-doc data. r=heycam
The setup is quite different to Servo-land, so add a comment about the different
setup.
Also, check viewport rules when flushing stylesheets. I believe that the
previous behavior is plain wrong, though I haven't taken the time to come up
with a test case.
In any case, it doesn't hurt any of both back-ends.
MozReview-Commit-ID: 46gtTkesOsr
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
Diffstat (limited to 'components/style/media_queries.rs')
-rw-r--r-- | components/style/media_queries.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/media_queries.rs b/components/style/media_queries.rs index daac8bed876..19a7fd41b39 100644 --- a/components/style/media_queries.rs +++ b/components/style/media_queries.rs @@ -19,7 +19,7 @@ pub use servo::media_queries::{Device, Expression}; pub use gecko::media_queries::{Device, Expression}; /// A type that encapsulates a media query list. -#[derive(Debug, PartialEq)] +#[derive(Debug)] #[cfg_attr(feature = "servo", derive(HeapSizeOf))] pub struct MediaList { /// The list of media queries. @@ -66,7 +66,7 @@ impl ToCss for Qualifier { /// A [media query][mq]. /// /// [mq]: https://drafts.csswg.org/mediaqueries/ -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug)] #[cfg_attr(feature = "servo", derive(HeapSizeOf))] pub struct MediaQuery { /// The qualifier for this query. |