mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user