| Index: Source/core/rendering/RenderEmbeddedObject.cpp
|
| diff --git a/Source/core/rendering/RenderEmbeddedObject.cpp b/Source/core/rendering/RenderEmbeddedObject.cpp
|
| index 9b9293da70dd7f2dd705d11aafdc215310018ef0..5f58c06b597340b7c12217e8ce4b60e848877004 100644
|
| --- a/Source/core/rendering/RenderEmbeddedObject.cpp
|
| +++ b/Source/core/rendering/RenderEmbeddedObject.cpp
|
| @@ -203,9 +203,11 @@ void RenderEmbeddedObject::paintReplaced(PaintInfo& paintInfo, const LayoutPoint
|
| const FontMetrics& fontMetrics = font.fontMetrics();
|
| float labelX = roundf(replacementTextRect.location().x() + (replacementTextRect.size().width() - textWidth) / 2);
|
| float labelY = roundf(replacementTextRect.location().y() + (replacementTextRect.size().height() - fontMetrics.height()) / 2 + fontMetrics.ascent());
|
| + TextRunPaintInfo runInfo(run);
|
| + runInfo.bounds = replacementTextRect;
|
| context->setAlpha(m_unavailablePluginIndicatorIsPressed ? replacementTextPressedTextOpacity : replacementTextTextOpacity);
|
| context->setFillColor(Color::black, style()->colorSpace());
|
| - context->drawBidiText(font, run, FloatPoint(labelX, labelY));
|
| + context->drawBidiText(font, runInfo, FloatPoint(labelX, labelY));
|
| }
|
|
|
| bool RenderEmbeddedObject::getReplacementTextGeometry(const LayoutPoint& accumulatedOffset, FloatRect& contentRect, Path& path, FloatRect& replacementTextRect, Font& font, TextRun& run, float& textWidth) const
|
|
|