TextRunComponent::TextRunComponent(const UChar *start, int length, const TextRun& parentTextRun, const Font &font, int o) : m_textRun(start, length, parentTextRun.allowTabs(), 0, 0 , parentTextRun.rtl() , parentTextRun.directionalOverride() , parentTextRun.applyRunRounding() , parentTextRun.applyWordRounding()) , m_offset(o) , m_spaces(0) { WidthIterator it(&font, m_textRun); it.advance(m_textRun.length(), 0); m_width = it.m_runWidthSoFar; }