Issue #2112 - Part 12: Remove reserved Servo bits from node/element flags and event states

This commit is contained in:
FranklinDM 2024-03-25 21:31:07 +08:00 committed by roytam1
commit f5792e6b64
3 changed files with 12 additions and 52 deletions

View file

@ -202,20 +202,8 @@ enum {
NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS = NODE_FLAG_BIT(20),
// These two bits are shared by Gecko's and Servo's restyle systems for
// different purposes. They should not be accessed directly, and access to
// them should be properly guarded by asserts.
NODE_SHARED_RESTYLE_BIT_1 = NODE_FLAG_BIT(21),
NODE_SHARED_RESTYLE_BIT_2 = NODE_FLAG_BIT(22),
// Whether this node is dirty for Servo's style system.
NODE_IS_DIRTY_FOR_SERVO = NODE_SHARED_RESTYLE_BIT_1,
// Whether this node has dirty descendants for Servo's style system.
NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO = NODE_SHARED_RESTYLE_BIT_2,
// Remaining bits are node type specific.
NODE_TYPE_SPECIFIC_BITS_OFFSET = 23
NODE_TYPE_SPECIFIC_BITS_OFFSET = 21
};
// Make sure we have space for our bits