Skip to content

Commit

Permalink
Bug 1589778 - Ensure cluster boundaries are set up even in blank text…
Browse files Browse the repository at this point in the history
…runs. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D175960
  • Loading branch information
jfkthame committed Apr 20, 2023
1 parent 0e803ce commit f5be0a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gfx/thebes/gfxTextRun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f5be0a3

Please sign in to comment.