mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Bump the expected sizes for Element.
After rebasing, this suddenly became a problem again, even though there's no actual size increase here (we're shrinking NodeFlags by 1 byte, and adding 1 byte of EventState). Moving the NodeFlags to the end of Node and the EventState bits to the beginning of Element doesn't seem to helper either. This is probably a padding issue that's worth investigating at some point, but given the level of churn in this code it doesn't seem worth it to fuss to much over this right now.
This commit is contained in:
parent
ac8d57cda7
commit
69255ed169
1 changed files with 4 additions and 4 deletions
|
@ -39,9 +39,9 @@ macro_rules! sizeof_checker (
|
||||||
// Update the sizes here
|
// Update the sizes here
|
||||||
sizeof_checker!(size_event_target, EventTarget, 40);
|
sizeof_checker!(size_event_target, EventTarget, 40);
|
||||||
sizeof_checker!(size_node, Node, 168);
|
sizeof_checker!(size_node, Node, 168);
|
||||||
sizeof_checker!(size_element, Element, 304);
|
sizeof_checker!(size_element, Element, 312);
|
||||||
sizeof_checker!(size_htmlelement, HTMLElement, 320);
|
sizeof_checker!(size_htmlelement, HTMLElement, 328);
|
||||||
sizeof_checker!(size_div, HTMLDivElement, 320);
|
sizeof_checker!(size_div, HTMLDivElement, 328);
|
||||||
sizeof_checker!(size_span, HTMLSpanElement, 320);
|
sizeof_checker!(size_span, HTMLSpanElement, 328);
|
||||||
sizeof_checker!(size_text, Text, 200);
|
sizeof_checker!(size_text, Text, 200);
|
||||||
sizeof_checker!(size_characterdata, CharacterData, 200);
|
sizeof_checker!(size_characterdata, CharacterData, 200);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue