Marker for baseline callbacks
Summary: @public Wraps baseline callbacks with a marker. Reviewed By: SidharthGuglani Differential Revision: D13896861 fbshipit-source-id: 848ec697977a0a68b9943f1159f6562d54724f89
This commit is contained in:
committed by
Facebook Github Bot
parent
0d026bd1a0
commit
5121fef5d8
@@ -1074,7 +1074,9 @@ static inline YGAlign YGNodeAlignItem(
|
||||
|
||||
static float YGBaseline(const YGNodeRef node) {
|
||||
if (node->getBaseline() != nullptr) {
|
||||
const float baseline = node->getBaseline()(
|
||||
const float baseline = marker::MarkerSection<YGMarkerBaselineFn>::wrap(
|
||||
node,
|
||||
node->getBaseline(),
|
||||
node,
|
||||
node->getLayout().measuredDimensions[YGDimensionWidth],
|
||||
node->getLayout().measuredDimensions[YGDimensionHeight]);
|
||||
|
Reference in New Issue
Block a user