| Index: Source/core/rendering/RenderImage.cpp
|
| diff --git a/Source/core/rendering/RenderImage.cpp b/Source/core/rendering/RenderImage.cpp
|
| index 220591454d98302467e56f6170bf343a70fb6511..40b70c94bd73696bfec5dcbdc087012f1df3decd 100644
|
| --- a/Source/core/rendering/RenderImage.cpp
|
| +++ b/Source/core/rendering/RenderImage.cpp
|
| @@ -348,7 +348,6 @@ void RenderImage::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOf
|
| }
|
|
|
| if (!m_altText.isEmpty()) {
|
| - String text = document().displayStringModifiedByEncoding(m_altText);
|
| const Font& font = style()->font();
|
| const FontMetrics& fontMetrics = font.fontMetrics();
|
| LayoutUnit ascent = fontMetrics.ascent();
|
| @@ -358,7 +357,7 @@ void RenderImage::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOf
|
|
|
| // Only draw the alt text if it'll fit within the content box,
|
| // and only if it fits above the error image.
|
| - TextRun textRun = RenderBlock::constructTextRun(this, font, text, style());
|
| + TextRun textRun = RenderBlock::constructTextRun(this, font, m_altText, style());
|
| LayoutUnit textWidth = font.width(textRun);
|
| TextRunPaintInfo textRunPaintInfo(textRun);
|
| textRunPaintInfo.bounds = FloatRect(textRectOrigin, FloatSize(textWidth, fontMetrics.height()));
|
|
|