Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YGEdge -> yoga::Edge #41391

Closed
wants to merge 3 commits into from
Closed

Conversation

NickGerleman
Copy link
Contributor

Summary:
Converts usages of YGEdge within internal APIs to yoga::Edge scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Differential Revision: D51152779

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Nov 9, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

@analysis-bot
Copy link

analysis-bot commented Nov 9, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 17,680,979 +1,736
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 21,064,007 +1,728
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: caae388
Branch: main

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 9, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Differential Revision: D51152779

fbshipit-source-id: adb8fecf7f653d9f816e1eaef615498cdf6de055
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 9, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Differential Revision: D51152779

fbshipit-source-id: 25a6436f50bec4f3bdde157b535ed1815fac85cc
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 10, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: d76b850375c3d2c791ba8bd1dcf2c0b961a45738
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 10, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 57bc135d97ebd62a899f533e593a8d9b3251246e
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 14, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 5958bbbb9fbb65e7ea16e2fe3dd824e4f369fa9f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 14, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: b8447fc07fc4ca32e591e9aa4640fdb1806995a9
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 14, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 7870a11a01ef224068341fb84afec82341f5d80f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 14, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 31fa8969badd3dbb175d79a4b8b0319eea68807f
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 14, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 6717ed59fcb6479e8b7973e10bcd2dfc5a50847b
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 14, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 8da1fe209b1930af0b70f5c23aadb61a35587bfc
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 14, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: f9471715fc9bb5f7ec11b3579d7f570cddc3174f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 14, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 17378a8710afa2b22c63ae5098be51a3391a6019
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 21, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 7697e8b529e56bc18e250459aa25719e4a5c7128
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 22, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: f3955620b881126fb71e2a6d0771f3622da1598b
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 22, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: de91bb48688a12dd42fe12ba2251436d47f90cec
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 25, 2023
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 25, 2023
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 25, 2023
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 25, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 3a7f77b200d23d9f3619ce20fcb2331c7d067a8e
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 25, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 8af126d6078f3ea50f6d80f79852eb5954413e19
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 25, 2023
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 25, 2023
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 25, 2023
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
NickGerleman and others added 3 commits November 25, 2023 15:05
Differential Revision: https://internalfb.com/D51000389

fbshipit-source-id: fe2b4cbb82658931217b468967c24d582ecc978a
Summary:
Yoga passes `MeasureMode`/`YGMeasureMode` to express constraints in how a box should be measured, given definite or indefinite available space.

This is modeled after Android [MeasureSpec](https://developer.android.com/reference/android/view/View.MeasureSpec), with a table above `calculateLayoutImpl()` explaining the CSS terms they map to. This can be confusing when flipping between the spec, and code.

This switches internal usages to the CSS terms, but leaves around `YGMeasureMode` since it is the public API passed to measure functions.

Differential Revision: D51068417

fbshipit-source-id: 2a4ebd327bb63a97840b987e817e18587b4c06d8
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: e9293b6215a8f4a3c65852d583a29693ae34f8aa
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

facebook-github-bot pushed a commit to facebook/litho that referenced this pull request Nov 26, 2023
Summary:
X-link: facebook/react-native#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 06554f67bfd7709cbc24fdd9a5474e897e9e95d8
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 26, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in b5f04d1.

facebook-github-bot pushed a commit to facebook/yoga that referenced this pull request Nov 26, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: #1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 06554f67bfd7709cbc24fdd9a5474e897e9e95d8
Othinn pushed a commit to Othinn/react-native that referenced this pull request Jan 9, 2024
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 06554f67bfd7709cbc24fdd9a5474e897e9e95d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants