Changeset 274532 in webkit
- Timestamp:
- Mar 16, 2021 4:39:32 PM (16 months ago)
- Location:
- trunk
- Files:
-
- 4 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/text/image-alt-text-bidi-2-expected.html (added)
-
LayoutTests/fast/text/image-alt-text-bidi-2.html (added)
-
LayoutTests/fast/text/image-alt-text-bidi-expected.html (added)
-
LayoutTests/fast/text/image-alt-text-bidi.html (added)
-
LayoutTests/platform/ios/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/mac/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderImage.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r274528 r274532 1 2021-03-15 Ebrahim Byagowi <ebrahim@gnu.org> and Myles C. Maxfield <mmaxfield@apple.com> 2 3 <img> isn't able to render RTL text correctly in ALT text 4 https://bugs.webkit.org/show_bug.cgi?id=221833 5 <rdar://problem/74530491> 6 7 Reviewed by Zalan Bujtas. 8 9 * platform/ios/TestExpectations: 10 * platform/mac/TestExpectations: 11 * fast/text/image-alt-text-bidi-2-expected.html: Added. 12 * fast/text/image-alt-text-bidi-2.html: Added. 13 * fast/text/image-alt-text-bidi-expected.html: Added. 14 * fast/text/image-alt-text-bidi.html: Added. 15 1 16 2021-03-16 Alexey Shvayka <shvaikalesh@gmail.com> 2 17 -
trunk/LayoutTests/platform/ios/TestExpectations
r274521 r274532 3507 3507 # Not all OSes support the same set of emoji. 3508 3508 fast/text/mending-heart.html [ Failure ] 3509 3510 webkit.org/b/221833 fast/text/image-alt-text-bidi.html [ ImageOnlyFailure ] -
trunk/LayoutTests/platform/mac/TestExpectations
r274524 r274532 2322 2322 2323 2323 webkit.org/b/223144 [ Debug arm64 ] fast/multicol/crash-when-spanner-candidate-is-out-of-flow.html [ Crash ] 2324 2325 webkit.org/b/221833 fast/text/image-alt-text-bidi-2.html [ ImageOnlyFailure ] -
trunk/Source/WebCore/ChangeLog
r274531 r274532 1 2021-03-15 Ebrahim Byagowi <ebrahim@gnu.org> and Myles C. Maxfield <mmaxfield@apple.com> 2 3 <img> isn't able to render RTL text correctly in ALT text 4 https://bugs.webkit.org/show_bug.cgi?id=221833 5 <rdar://problem/74530491> 6 7 Reviewed by Zalan Bujtas. 8 9 Simply use the text drawing routine that handles bidi. 10 11 Test: fast/text/image-alt-text-bidi.html 12 13 * rendering/RenderImage.cpp: 14 (WebCore::RenderImage::paintReplaced): 15 1 16 2021-03-15 Myles C. Maxfield <mmaxfield@apple.com> 2 17 -
trunk/Source/WebCore/rendering/RenderImage.cpp
r272805 r274532 5 5 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) 6 6 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 7 * Copyright (C) 2003 , 2004, 2005, 2006, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.7 * Copyright (C) 2003-2021 Apple Inc. All rights reserved. 8 8 * Copyright (C) 2010 Google Inc. All rights reserved. 9 9 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. … … 538 538 if (errorPictureDrawn) { 539 539 if (usableSize.width() >= textWidth && fontMetrics.height() <= imageOffset.height()) 540 context.draw Text(font, textRun, altTextOffset);540 context.drawBidiText(font, textRun, altTextOffset); 541 541 } else if (usableSize.width() >= textWidth && usableSize.height() >= fontMetrics.height()) 542 context.draw Text(font, textRun, altTextOffset);542 context.drawBidiText(font, textRun, altTextOffset); 543 543 } 544 544 }
Note: See TracChangeset
for help on using the changeset viewer.