layout: Integrate more details into FontAndScriptInfo#43974
Conversation
| language, | ||
| bidi_level: Level::ltr(), | ||
| letter_spacing, | ||
| word_spacing: None, |
There was a problem hiding this comment.
Why pass the actual letter_spacing, but not the actual word_spacing?
There was a problem hiding this comment.
I was thinking that this would only be reached when the segment is entirely control characters and white space, but to be safe I'll pass a real word_spacing here.
| let mut results = Vec::new(); | ||
|
|
||
| let lang = parent_style.get_font()._x_lang.clone(); | ||
| let lang_attribute = parent_style.get_font()._x_lang.clone(); |
There was a problem hiding this comment.
Currently we are only using -x-lang for the attribute, but e.g. Firefox also sets it on <math>, so I wouldn't name the variable this way.
| character, | ||
| next_character, | ||
| lang.clone(), | ||
| lang_attribute.clone(), |
There was a problem hiding this comment.
Not necessarily in this PR, but might be good to pass the parsed language here?
There was a problem hiding this comment.
I had the same thought actually. It needs a little investigation.
|
🔨 Triggering try run (#24150662584) for Linux (WPT) |
|
Test results for linux-wpt from try job (#24150662584): Flaky unexpected result (42)
Stable unexpected results that are known to be intermittent (17)
|
|
✨ Try run (#24150662584) succeeded. |
This will be needed for ensuring that shaped text is valid during relayout. It duplicates some information, but the hope is that when all of these change are done, there will be many fewer individual shaped segments of text. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
9119355 to
d150d17
Compare
This will be needed for ensuring that shaped text is valid during
relayout. It duplicates some information, but the hope is that when all
of these change are done, there will be many fewer individual shaped
segments of text.
Testing: This should not really change observable behavior so is covered by existing tests.