Avoid extra text layout when null and default non-null values are mixed between calls#2634
Merged
MatkovIvan merged 1 commit intojb-mainfrom Dec 9, 2025
Merged
Conversation
ASalavei
approved these changes
Dec 9, 2025
igordmn
reviewed
Dec 9, 2025
| @@ -160,7 +160,7 @@ private sealed interface ComputedStyle { | |||
| fontStyle?.let { | |||
Collaborator
There was a problem hiding this comment.
Please add Fixes "CMP-8028 Text color is sometimes randomly black on iOS when using Compose Multiplatform (BasicText)" in the description to update the issue
Member
Author
There was a problem hiding this comment.
It's not directly related to that, but ok
Collaborator
There was a problem hiding this comment.
The point is to notify QA to test this (or be aware) by changing "Fix version". This is only possible if it is written in "Fix..." format.
If it isn't right to mention existing issue, let's create a new one.
...ui/ui-text/src/skikoMain/kotlin/androidx/compose/ui/text/platform/ParagraphLayouter.skiko.kt
Show resolved
Hide resolved
igordmn
approved these changes
Dec 9, 2025
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.
Follow up after debugging #2629/CMP-8028
This fix reduces the number of skia paragraph layout calls from 3 to 2 for each label in the next example:
Unfortunately, a unit test for this behavior is not trivial because we don't have infra to mock final classes even on JVM now
Release Notes
N/A