mirror of
https://github.com/servo/servo.git
synced 2025-08-23 06:15:35 +01:00
Remove the wrapper::ServoThreadSafeLayoutNode re-export.
This commit is contained in:
parent
7bbabf2766
commit
0c506cf1df
3 changed files with 2 additions and 22 deletions
|
@ -3,7 +3,6 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use layout::Fragment;
|
||||
use layout::ServoThreadSafeLayoutNode;
|
||||
use std::mem::size_of;
|
||||
|
||||
#[test]
|
||||
|
@ -25,23 +24,3 @@ fn test_size_of_fragment() {
|
|||
expected, actual);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_size_of_layout_node() {
|
||||
let expected = 16;
|
||||
let actual = size_of::<ServoThreadSafeLayoutNode>();
|
||||
|
||||
if actual < expected {
|
||||
panic!("Your changes have decreased the stack size of layout::wrapper::ServoThreadSafeLayoutNode \
|
||||
from {} to {}. Good work! Please update the size in tests/layout/unit/size_of.rs",
|
||||
expected, actual);
|
||||
}
|
||||
|
||||
if actual > expected {
|
||||
panic!("Your changes have increased the stack size of layout::wrapper::ServoThreadSafeLayoutNode \
|
||||
from {} to {}. Please consider choosing a design which avoids this increase. \
|
||||
If you feel that the increase is necessary, update the size in \
|
||||
tests/unit/layout/size_of.rs.",
|
||||
expected, actual);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue