@@ -41,46 +41,39 @@ class ShadowNodeTraits {
4141 // Nodes with this trait (and all their descendants) will not produce views.
4242 Hidden = 1 << 2 ,
4343
44- // Indicates that the `YogaLayoutableShadowNode` must set `isDirty` flag for
45- // Yoga node when a `ShadowNode` is being cloned. `ShadowNode`s that modify
46- // Yoga styles in the constructor (or later) *after* the `ShadowNode`
47- // is cloned must set this trait.
48- // Any Yoga node (not only Leaf ones) can have this trait.
49- DirtyYogaNode = 1 << 3 ,
50-
5144 // Inherits `YogaLayoutableShadowNode` and enforces that the yoga node is a
5245 // leaf.
53- LeafYogaNode = 1 << 4 ,
46+ LeafYogaNode = 1 << 3 ,
5447
5548 // Inherits `YogaLayoutableShadowNode` and has a custom measure function.
5649 // Only Leaf nodes can have this trait.
57- MeasurableYogaNode = 1 << 5 ,
50+ MeasurableYogaNode = 1 << 4 ,
5851
5952 // Indicates that the `ShadowNode` must form a stacking context.
6053 // A Stacking Context forms a level of a `ShadowView` hierarchy (in contrast
6154 // with a level of a `ShadowNode` hierarchy).
6255 // See W3C standard for more details: https://www.w3.org/TR/CSS2/zindex.html
63- FormsStackingContext = 1 << 6 ,
56+ FormsStackingContext = 1 << 5 ,
6457
6558 // Indicates that the node must form a `ShadowView`.
66- FormsView = 1 << 7 ,
59+ FormsView = 1 << 6 ,
6760
6861 // Internal to `ShadowNode`; do not use it outside.
6962 // Indicates that `children` list is shared between nodes and need
7063 // to be cloned before the first mutation.
71- ChildrenAreShared = 1 << 8 ,
64+ ChildrenAreShared = 1 << 7 ,
7265
7366 // Indicates that direct children of the node should not be collapsed
74- ChildrenFormStackingContext = 1 << 9 ,
67+ ChildrenFormStackingContext = 1 << 8 ,
7568
7669 // Inherits `YogaLayoutableShadowNode` and has a custom baseline function.
77- BaselineYogaNode = 1 << 10 ,
70+ BaselineYogaNode = 1 << 9 ,
7871
7972 // Forces the node not to form a host view.
80- ForceFlattenView = 1 << 11 ,
73+ ForceFlattenView = 1 << 10 ,
8174
8275 // Indicates if the node is keyboard focusable.
83- KeyboardFocusable = 1 << 12 ,
76+ KeyboardFocusable = 1 << 11 ,
8477 };
8578
8679 /*
0 commit comments