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:
committed by
Facebook GitHub Bot
parent
6afc984e81
commit
ec9da43de5
+3
-2
@@ -165,8 +165,9 @@ void AndroidTextInputShadowNode::updateStateIfNeeded() {
|
||||
|
||||
#pragma mark - LayoutableShadowNode
|
||||
|
||||
Size AndroidTextInputShadowNode::measure(
|
||||
LayoutConstraints layoutConstraints) const {
|
||||
Size AndroidTextInputShadowNode::measureContent(
|
||||
LayoutContext const &layoutContext,
|
||||
LayoutConstraints const &layoutConstraints) 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,
|
||||
|
||||
Reference in New Issue
Block a user