@@ -41,46 +41,39 @@ class ShadowNodeTraits {
41
41
// Nodes with this trait (and all their descendants) will not produce views.
42
42
Hidden = 1 << 2 ,
43
43
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
-
51
44
// Inherits `YogaLayoutableShadowNode` and enforces that the yoga node is a
52
45
// leaf.
53
- LeafYogaNode = 1 << 4 ,
46
+ LeafYogaNode = 1 << 3 ,
54
47
55
48
// Inherits `YogaLayoutableShadowNode` and has a custom measure function.
56
49
// Only Leaf nodes can have this trait.
57
- MeasurableYogaNode = 1 << 5 ,
50
+ MeasurableYogaNode = 1 << 4 ,
58
51
59
52
// Indicates that the `ShadowNode` must form a stacking context.
60
53
// A Stacking Context forms a level of a `ShadowView` hierarchy (in contrast
61
54
// with a level of a `ShadowNode` hierarchy).
62
55
// See W3C standard for more details: https://www.w3.org/TR/CSS2/zindex.html
63
- FormsStackingContext = 1 << 6 ,
56
+ FormsStackingContext = 1 << 5 ,
64
57
65
58
// Indicates that the node must form a `ShadowView`.
66
- FormsView = 1 << 7 ,
59
+ FormsView = 1 << 6 ,
67
60
68
61
// Internal to `ShadowNode`; do not use it outside.
69
62
// Indicates that `children` list is shared between nodes and need
70
63
// to be cloned before the first mutation.
71
- ChildrenAreShared = 1 << 8 ,
64
+ ChildrenAreShared = 1 << 7 ,
72
65
73
66
// Indicates that direct children of the node should not be collapsed
74
- ChildrenFormStackingContext = 1 << 9 ,
67
+ ChildrenFormStackingContext = 1 << 8 ,
75
68
76
69
// Inherits `YogaLayoutableShadowNode` and has a custom baseline function.
77
- BaselineYogaNode = 1 << 10 ,
70
+ BaselineYogaNode = 1 << 9 ,
78
71
79
72
// Forces the node not to form a host view.
80
- ForceFlattenView = 1 << 11 ,
73
+ ForceFlattenView = 1 << 10 ,
81
74
82
75
// Indicates if the node is keyboard focusable.
83
- KeyboardFocusable = 1 << 12 ,
76
+ KeyboardFocusable = 1 << 11 ,
84
77
};
85
78
86
79
/*
0 commit comments