Changeset 285171 in webkit
- Timestamp:
- Nov 2, 2021, 12:02:46 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
layout/integration/InlineIteratorBoxModernPath.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r285170 r285171 1 2021-11-02 Antti Koivisto <antti@apple.com> 2 3 [LFC][Integration] Provide bidi properties when constructing TextRun 4 https://bugs.webkit.org/show_bug.cgi?id=232632 5 6 Reviewed by Alan Bujtas. 7 8 Enable correct painting of bidi text runs. 9 10 * layout/integration/InlineIteratorBoxModernPath.h: 11 (WebCore::InlineIterator::BoxModernPath::createTextRun const): 12 (WebCore::InlineIterator::BoxModernPath::renderText const): 13 (WebCore::InlineIterator::BoxModernPath::direction const): 14 1 15 2021-11-02 Kate Cheney <katherine_cheney@apple.com> 2 16 -
trunk/Source/WebCore/layout/integration/InlineIteratorBoxModernPath.h
r285083 r285171 56 56 57 57 bool isHorizontal() const { return true; } 58 // FIXME: Provide or remove. 58 59 bool dirOverride() const { return false; } 59 60 bool isLineBreak() const { return box().isLineBreak(); } … … 289 290 }(); 290 291 291 TextRun textRun { textForRun, xPos, expansion.horizontalExpansion, expansion.behavior }; 292 bool directionalOverride = dirOverride() || style.rtlOrdering() == Order::Visual; 293 bool characterScanForCodePath = !renderText().canUseSimpleFontCodePath(); 294 TextRun textRun { textForRun, xPos, expansion.horizontalExpansion, expansion.behavior, direction(), directionalOverride, characterScanForCodePath }; 292 295 textRun.setTabSize(!style.collapseWhiteSpace(), style.tabSize()); 293 296 return textRun; 294 297 }; 295 298 299 const RenderText& renderText() const { return downcast<RenderText>(renderer()); } 300 TextDirection direction() const { return bidiLevel() % 2 ? TextDirection::RTL : TextDirection::LTR; } 301 296 302 RefPtr<const LayoutIntegration::InlineContent> m_inlineContent; 297 303 size_t m_boxIndex { 0 };
Note:
See TracChangeset
for help on using the changeset viewer.