Publish event when visiting nodes during layout
Summary: @public Publish an event when visiting nodes during layouts. Reviewed By: SidharthGuglani Differential Revision: D15206965 fbshipit-source-id: c201f084b1d4186bc64560b8033be965f2549236
This commit is contained in:
committed by
Facebook Github Bot
parent
e96a09e5ff
commit
5824dbda66
@@ -3667,6 +3667,9 @@ bool YGLayoutNodeInternal(
|
||||
const YGConfigRef config,
|
||||
YGMarkerLayoutData& layoutMarkerData,
|
||||
void* const layoutContext) {
|
||||
#ifdef YG_ENABLE_EVENTS
|
||||
Event::publish<Event::NodeLayout>(node);
|
||||
#endif
|
||||
YGLayout* layout = &node->getLayout();
|
||||
|
||||
gDepth++;
|
||||
|
Reference in New Issue
Block a user