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

Clean up the function naming in TextMeasureCache.h #42598

Closed
wants to merge 1 commit into from

Conversation

cubuspl42
Copy link
Contributor

Summary:

Clean up the function naming in TextMeasureCache.h. One name was clearly a human mistake. Make the naming consistent.

This is a minor improvement in the context of my multi-PR work on react-native-community/discussions-and-proposals#695.

Changelog:

[INTERNAL] [CHANGE] - Clean up the function naming in TextMeasureCache.h

Test Plan:

One name was clearly a human mistake. Make the naming consistent.
@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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jan 22, 2024
@cubuspl42
Copy link
Contributor Author

@christophpurrer Any chance you could review this?

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 16,951,058 +5,875
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 20,334,845 +2,345
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 6d77d7b
Branch: main

@sammy-SC sammy-SC self-requested a review January 22, 2024 16:30
@facebook-github-bot
Copy link
Contributor

@sammy-SC has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@@ -141,7 +141,7 @@ inline bool areAttributedStringFragmentsEquivalentLayoutWise(
rhs.parentShadowView.layoutMetrics));
}

inline size_t textAttributesHashLayoutWise(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the human mistake; it's a hash for AttributedString::Fragment, not for TextAttributes

@@ -171,12 +171,12 @@ inline bool areAttributedStringsEquivalentLayoutWise(
return true;
}

inline size_t textAttributedStringHashLayoutWise(
inline size_t attributedStringHashLayoutWise(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the rename for the sake of consistency

@cubuspl42
Copy link
Contributor Author

@sammy-SC

Thanks for assigning yourself!

Let me know what you think. It's a very trivial change, but I wanted to make it separate so it's clear what is being changed and why.

Sorry about the failing lint; is this related to line lengths? Is there a simple way to fix it?

Why is "Builds & Tests" failing?

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 23, 2024
@facebook-github-bot
Copy link
Contributor

@sammy-SC merged this pull request in cbd818d.

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. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants