mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Further changes required by Servo
This commit is contained in:
parent
f48b95e2e3
commit
a7699d9034
23 changed files with 76 additions and 117 deletions
|
@ -21,7 +21,6 @@ servo_arc = {path = "../../../components/servo_arc"}
|
|||
servo_atoms = {path = "../../../components/atoms"}
|
||||
servo_config = {path = "../../../components/config"}
|
||||
servo_url = {path = "../../../components/url"}
|
||||
size_of_test = {path = "../../../components/size_of_test"}
|
||||
style = {path = "../../../components/style", features = ["servo"]}
|
||||
style_traits = {path = "../../../components/style_traits"}
|
||||
std_test_override = { path = "../../../components/std_test_override" }
|
||||
|
|
|
@ -16,7 +16,6 @@ extern crate serde_json;
|
|||
extern crate servo_arc;
|
||||
extern crate servo_atoms;
|
||||
extern crate servo_url;
|
||||
#[macro_use]
|
||||
extern crate style;
|
||||
extern crate style_traits;
|
||||
extern crate test;
|
||||
|
@ -28,7 +27,6 @@ mod logical_geometry;
|
|||
mod parsing;
|
||||
mod properties;
|
||||
mod rule_tree;
|
||||
mod size_of;
|
||||
mod str;
|
||||
mod stylesheets;
|
||||
mod stylist;
|
||||
|
|
|
@ -1,51 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use selectors::parser::{SelectorParseError, SelectorParseErrorKind};
|
||||
use style::invalidation::element::invalidation_map::Dependency;
|
||||
use style::properties;
|
||||
|
||||
size_of_test!(test_size_of_dependency, Dependency, 24);
|
||||
|
||||
size_of_test!(
|
||||
test_size_of_property_declaration,
|
||||
properties::PropertyDeclaration,
|
||||
32
|
||||
);
|
||||
|
||||
// This is huge, but we allocate it on the stack and then never move it,
|
||||
// we only pass `&mut SourcePropertyDeclaration` references around.
|
||||
size_of_test!(
|
||||
test_size_of_parsed_declaration,
|
||||
properties::SourcePropertyDeclaration,
|
||||
568
|
||||
);
|
||||
|
||||
size_of_test!(
|
||||
test_size_of_selector_parse_error_kind,
|
||||
SelectorParseErrorKind,
|
||||
40
|
||||
);
|
||||
size_of_test!(
|
||||
test_size_of_style_parse_error_kind,
|
||||
::style_traits::StyleParseErrorKind,
|
||||
56
|
||||
);
|
||||
size_of_test!(
|
||||
test_size_of_value_parse_error_kind,
|
||||
::style_traits::ValueParseErrorKind,
|
||||
40
|
||||
);
|
||||
|
||||
size_of_test!(test_size_of_selector_parse_error, SelectorParseError, 48);
|
||||
size_of_test!(
|
||||
test_size_of_style_traits_parse_error,
|
||||
::style_traits::ParseError,
|
||||
64
|
||||
);
|
||||
size_of_test!(
|
||||
test_size_of_value_parse_error,
|
||||
::style_traits::ValueParseError,
|
||||
48
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue