Changeset 290734 in webkit
- Timestamp:
- Mar 2, 2022 9:09:34 AM (5 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/images/alt-text-with-right-to-left-inline-direction-reordering-expected-mismatch.html (added)
-
LayoutTests/fast/images/alt-text-with-right-to-left-inline-direction-reordering.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderImage.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r290729 r290734 1 2022-03-02 Alan Bujtas <zalan@apple.com> 2 3 [RTL] Image alt text has incorrect bidi reordering 4 https://bugs.webkit.org/show_bug.cgi?id=237366 5 <rdar://problem/89687229> 6 7 Reviewed by Antti Koivisto. 8 9 * fast/images/alt-text-with-right-to-left-inline-direction-reordering-expected-mismatch.html: Added. 10 * fast/images/alt-text-with-right-to-left-inline-direction-reordering.html: Added. 11 1 12 2022-03-02 Oriol Brufau <obrufau@igalia.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r290733 r290734 1 2022-03-02 Alan Bujtas <zalan@apple.com> 2 3 [RTL] Image alt text has incorrect bidi reordering 4 https://bugs.webkit.org/show_bug.cgi?id=237366 5 <rdar://problem/89687229> 6 7 Reviewed by Antti Koivisto. 8 9 Test: fast/images/alt-text-with-right-to-left-inline-direction-reordering.html 10 11 * rendering/RenderImage.cpp: 12 (WebCore::RenderImage::paintReplaced): Enable bidi reordering. 13 1 14 2022-03-02 Youenn Fablet <youenn@apple.com> 2 15 -
trunk/Source/WebCore/rendering/RenderImage.cpp
r290726 r290734 532 532 auto& font = style().fontCascade(); 533 533 auto& fontMetrics = font.metricsOfPrimaryFont(); 534 auto textRun = RenderBlock::constructTextRun(document().displayStringModifiedByEncoding(m_altText), style() );534 auto textRun = RenderBlock::constructTextRun(document().displayStringModifiedByEncoding(m_altText), style(), DefaultExpansion, RespectDirection | RespectDirectionOverride); 535 535 auto textWidth = LayoutUnit { font.width(textRun) }; 536 536
Note: See TracChangeset
for help on using the changeset viewer.