mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
This reverts commit 8e15389cae
.
This commit is contained in:
parent
8e15389cae
commit
d6ae8dc112
152 changed files with 4622 additions and 5862 deletions
|
@ -203,6 +203,9 @@ impl RuleTree {
|
|||
/// where it likely did not result from a rigorous performance analysis.)
|
||||
const RULE_TREE_GC_INTERVAL: usize = 300;
|
||||
|
||||
/// Used for some size assertions.
|
||||
pub const RULE_NODE_SIZE: usize = std::mem::size_of::<RuleNode>();
|
||||
|
||||
/// A node in the rule tree.
|
||||
struct RuleNode {
|
||||
/// The root node. Only the root has no root pointer, for obvious reasons.
|
||||
|
@ -765,8 +768,3 @@ impl hash::Hash for StrongRuleNode {
|
|||
(&*self.p as *const RuleNode).hash(state)
|
||||
}
|
||||
}
|
||||
|
||||
// Large pages generate thousands of RuleNode objects.
|
||||
size_of_test!(RuleNode, 80);
|
||||
// StrongRuleNode should be pointer-sized even inside an option.
|
||||
size_of_test!(Option<StrongRuleNode>, 8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue