mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Auto merge of #16960 - servo:derive-all-the-things, r=emilio
Derive HasViewportPercentage 🍷 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16960) <!-- Reviewable:end -->
This commit is contained in:
commit
4f0b24ac0c
40 changed files with 258 additions and 574 deletions
|
@ -5,7 +5,6 @@
|
|||
use app_units::Au;
|
||||
use style::attr::{AttrValue, LengthOrPercentageOrAuto, parse_length};
|
||||
use style::values::computed::CalcLengthOrPercentage;
|
||||
use style_traits::values::specified::AllowedLengthType;
|
||||
|
||||
#[test]
|
||||
fn test_length_calc() {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
fn smoke_restyle_hints() {
|
||||
use cssparser::Parser;
|
||||
use selectors::parser::SelectorList;
|
||||
use style::restyle_hints::{DependencySet, RESTYLE_LATER_SIBLINGS};
|
||||
use style::restyle_hints::DependencySet;
|
||||
use style::selector_parser::SelectorParser;
|
||||
use style::stylesheets::{Origin, Namespaces};
|
||||
let namespaces = Namespaces::default();
|
||||
|
|
|
@ -212,7 +212,7 @@ fn test_insert() {
|
|||
#[test]
|
||||
fn test_get_universal_rules() {
|
||||
thread_state::initialize(thread_state::LAYOUT);
|
||||
let (map, shared_lock) = get_mock_map(&["*|*", "#foo > *|*", "*|* > *|*", ".klass", "#id"]);
|
||||
let (map, _shared_lock) = get_mock_map(&["*|*", "#foo > *|*", "*|* > *|*", ".klass", "#id"]);
|
||||
|
||||
let decls = map.get_universal_rules(CascadeLevel::UserNormal);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue