-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Style] Switch all Length conversion to use Style::BuilderConverter helpers #46977
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
Merged
webkit-commit-queue
merged 1 commit into
WebKit:main
from
weinig:eng/length-conversion-via-builder-converter
Jun 27, 2025
Merged
[Style] Switch all Length conversion to use Style::BuilderConverter helpers #46977
webkit-commit-queue
merged 1 commit into
WebKit:main
from
weinig:eng/length-conversion-via-builder-converter
Jun 27, 2025
+39
−106
Conversation
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
This comment was marked as outdated.
This comment was marked as outdated.
8b680e7
to
3ce5f41
Compare
This comment was marked as outdated.
This comment was marked as outdated.
3ce5f41
to
4ee8f56
Compare
EWS run on previous version of this PR (hash 4ee8f56) |
4ee8f56
to
551bb04
Compare
EWS run on current version of this PR (hash 551bb04) |
darinadler
approved these changes
Jun 27, 2025
…elpers https://bugs.webkit.org/show_bug.cgi?id=294742 Reviewed by Darin Adler. Replace all uses of CSSPrimitiveValue::convertToLength with BuilderConverter::convertLength (except in TransformOperationsBuilder.cpp where a slight variation of that function is needed to maintain existing clamping behavior) and its ilk. This allows us to handle invalid length-percentage values in a consistent manner. * Source/WebCore/css/CSSPrimitiveValue.cpp: * Source/WebCore/css/CSSPrimitiveValue.h: * Source/WebCore/css/CSSPrimitiveValueMappings.h: * Source/WebCore/css/CSSProperties.json: * Source/WebCore/css/CSSToStyleMap.cpp: * Source/WebCore/style/StyleBuilderConverter.h: * Source/WebCore/style/StyleBuilderCustom.h: * Source/WebCore/style/TransformOperationsBuilder.cpp: * Source/WebCore/style/values/transforms/StyleTranslate.cpp: Canonical link: https://commits.webkit.org/296743@main
551bb04
to
24a0d87
Compare
Committed 296743@main (24a0d87): https://commits.webkit.org/296743@main Reviewed commits have been landed. Closing PR #46977 and removing active labels. |
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.
24a0d87
551bb04