Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / rendering / line / BreakingContextInlineHeaders.h
index 53f353d..2330f45 100644 (file)
@@ -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);