Rename measure to measureContent and pass it LayoutContext

Summary:
In order to build dynamic text sizing, `LayoutableShadowNode::measure` needs to accept `LayoutContext`

Changelog: [Internal]

Reviewed By: shergin

Differential Revision: D20184598

fbshipit-source-id: 8928b59d51948caf3654f40049212a89a91dceb6
This commit is contained in:
Samuel Susla
2020-03-03 04:10:31 -08:00
committed by Facebook Github Bot
parent d98a229202
commit b40f0562f5
16 changed files with 32 additions and 21 deletions
@@ -153,8 +153,9 @@ void AndroidTextInputShadowNode::updateStateIfNeeded() {
#pragma mark - LayoutableShadowNode
Size AndroidTextInputShadowNode::measure(
LayoutConstraints layoutConstraints) const {
Size AndroidTextInputShadowNode::measureContent(
LayoutConstraints layoutConstraints,
LayoutContext layoutContext) const {
// Layout is called right after measure.
// Measure is marked as `const`, and `layout` is not; so State can be updated
// during layout, but not during `measure`. If State is out-of-date in layout,