mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1589778 - Ensure cluster boundaries are set up even in blank textruns. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D175960
This commit is contained in:
parent
5e89f32247
commit
a3e321b11d
@ -2420,6 +2420,8 @@ already_AddRefed<gfxTextRun> gfxFontGroup::MakeBlankTextRun(
|
||||
textRun->AddGlyphRun(font, FontMatchType::Kind::kUnspecified, 0, false,
|
||||
orientation, false);
|
||||
|
||||
textRun->SetupClusterBoundaries(0, aString, aLength);
|
||||
|
||||
for (uint32_t i = 0; i < aLength; i++) {
|
||||
if (aString[i] == '\n') {
|
||||
textRun->SetIsNewline(i);
|
||||
|
Loading…
Reference in New Issue
Block a user