Skip to content

Commit

Permalink
Apply patch. rdar://problem/101296275
Browse files Browse the repository at this point in the history
  • Loading branch information
alancoon committed Oct 18, 2022
1 parent c6fe442 commit 465e3e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/WebCore/rendering/RenderImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,8 @@ void RenderImage::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOf
if (!m_altText.isEmpty()) {
auto& font = style().fontCascade();
auto& fontMetrics = font.metricsOfPrimaryFont();
auto textRun = RenderBlock::constructTextRun(document().displayStringModifiedByEncoding(m_altText), style(), ExpansionBehavior::defaultBehavior(), RespectDirection | RespectDirectionOverride);
auto encodedDisplayString = document().displayStringModifiedByEncoding(m_altText);
auto textRun = RenderBlock::constructTextRun(encodedDisplayString, style(), ExpansionBehavior::defaultBehavior(), RespectDirection | RespectDirectionOverride);
auto textWidth = LayoutUnit { font.width(textRun) };

auto hasRoomForAltText = [&] {
Expand Down

0 comments on commit 465e3e6

Please sign in to comment.