Index: Source/core/rendering/line/BreakingContextInlineHeaders.h |
diff --git a/Source/core/rendering/line/BreakingContextInlineHeaders.h b/Source/core/rendering/line/BreakingContextInlineHeaders.h |
index 53f353d3869680d4fcb81e447bf9ffa3e2fa97d4..2330f454c510859f4938d049ab8dc395d12591c7 100644 |
--- a/Source/core/rendering/line/BreakingContextInlineHeaders.h |
+++ b/Source/core/rendering/line/BreakingContextInlineHeaders.h |
@@ -521,6 +521,7 @@ ALWAYS_INLINE float textWidth(RenderText* text, unsigned from, unsigned len, con |
TextRun run = constructTextRun(text, font, text, from, len, text->style()); |
run.setCharacterScanForCodePath(!text->canUseSimpleFontCodePath()); |
+ run.setUseComplexCodePath(!text->canUseSimpleFontCodePath()); |
run.setTabSize(!collapseWhiteSpace, text->style()->tabSize()); |
run.setXPos(xPos); |
return font.width(run, fallbackFonts, &glyphOverflow); |