[mathml] Implement italic correction #25620
Open
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.
Implement italic correction [1] when laying out scripts. In order to
signal that an operator has an italic correction we add SetMathItalicCorrection
on the fragment builder and set it if needed when laying out the
operator. The script layout algorithm uses this value when laying
out the script, where appropriate.
[1] https://mathml-refresh.github.io/mathml-core/#dfn-italic-correction
Bug: 1125136, 6606
Change-Id: I2995b0fad1e1c8e96cc08818d50927d28cb54f4c
Reviewed-on: https://chromium-review.googlesource.com/2414240
WPT-Export-Revision: 11b69aa22b464e66a2fa8b6f96564ad0bf37aaa2