Repository navigation
Fix enableMeasurement() comment to name measureContent() - #60578
Open
YevheniiKotyrlo wants to merge 1 commit into
Open
YevheniiKotyrlo wants to merge 1 commit into
YevheniiKotyrlo wants to merge 1 commit into
Conversation
The measure function enableMeasurement() connects, yogaNodeMeasureCallbackConnector, calls LayoutableShadowNode::measureContent(), not measure(). Signed-off-by: YevheniiKotyrlo <44449990+YevheniiKotyrlo@users.noreply.github.com>
YevheniiKotyrlo
force-pushed
the
fix/enable-measurement-comment-names-measure-content
branch
from
December 4, 2026 21:42
1b52424 to
de4880c
Compare
YevheniiKotyrlo
marked this pull request as ready for review
December 5, 2026 00:07
This was referenced Dec 5, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
The comment on
YogaLayoutableShadowNode::enableMeasurement()says it connects the Yoga node's measure function withLayoutableShadowNode::measure(). The function it connects,yogaNodeMeasureCallbackConnector, calls the node'smeasureContent()(YogaLayoutableShadowNode.cpp#L981-L983), not itsmeasure(). The comment now namesmeasureContent().Related: #60571 adds
enableBaseline()besideenableMeasurement(), its comment in the same shape; #60572 addsgetLayoutMargins()to the same header; #60581 passes the source revision to theshouldNewRevisionDirtyMeasurement()call incompleteClone(); #60583 dirties a node connected byenableMeasurement()alone when a new revision invalidates its measurement or the font scale changes. All four merge with this without conflict. #59048 and #59139 add tests toViewTest.cppand share no file with this.Changelog:
[INTERNAL] [FIXED] - Name
measureContent()in the comment onYogaLayoutableShadowNode::enableMeasurement()Test Plan:
Comment-only change.
clang-format --dry-run --WerroronYogaLayoutableShadowNode.hreports the same lines onmainand on this branch, none in the changed comment (clang-format 23.1.4; the repository pins 21.1.2). The C++ API snapshots inscripts/cxx-api/api-snapshotsstrip doc comments (scripts/cxx-api/README.md), so none changes.