Rename LayoutableShadowNode::measure to LayoutableShadowNode::measureContent

Summary:
Changelog: [internal]

Rename `LayoutableShadowNode::measure` to `LayoutableShadowNode::measureContent` and add LayoutContext as parameter.

Pass `LayoutConstraints` by reference rather than value.

Reviewed By: shergin

Differential Revision: D22043727

fbshipit-source-id: b668240c45b658db5b114630b73d7407d35482aa
This commit is contained in:
Samuel Susla authored and Facebook GitHub Bot committed 2020-06-17 10:22:32 -07:00
1 parent 6afc984e81
commit ec9da43de5
13 files changed
+39 -16

No files matched your search

@@ -21,8 +21,9 @@ void AndroidSwitchShadowNode::setAndroidSwitchMeasurementsManager(
#pragma mark - LayoutableShadowNode
Size AndroidSwitchShadowNode::measure(
LayoutConstraints layoutConstraints) const {
Size AndroidSwitchShadowNode::measureContent(
LayoutContext const &layoutContext,
LayoutConstraints const &layoutConstraints) const {
return measurementsManager_->measure(getSurfaceId(), layoutConstraints);
}