mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Split Au type into separate crate, with minimal dependencies.
This commit is contained in:
parent
fb6d0946cb
commit
339a3f869b
72 changed files with 376 additions and 235 deletions
|
@ -8,6 +8,9 @@ name = "style_tests"
|
|||
path = "lib.rs"
|
||||
doctest = false
|
||||
|
||||
[dependencies.app_units]
|
||||
path = "../../../components/app_units"
|
||||
|
||||
[dependencies.style]
|
||||
path = "../../../components/style"
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#![feature(plugin)]
|
||||
#![plugin(string_cache_plugin)]
|
||||
|
||||
extern crate app_units;
|
||||
extern crate cssparser;
|
||||
extern crate euclid;
|
||||
extern crate selectors;
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use app_units::Au;
|
||||
use euclid::size::Size2D;
|
||||
use std::borrow::ToOwned;
|
||||
use style::media_queries::*;
|
||||
use style::stylesheets::{Origin, Stylesheet, CSSRuleIteratorExt};
|
||||
use style::values::specified;
|
||||
use url::Url;
|
||||
use util::geometry::Au;
|
||||
|
||||
|
||||
fn test_media_rule<F>(css: &str, callback: F) where F: Fn(&MediaQueryList, &str) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue