| Index: Source/core/paint/TextPainter.cpp
|
| diff --git a/Source/core/paint/TextPainter.cpp b/Source/core/paint/TextPainter.cpp
|
| index e51f4cef599de0300981f24458f16811540f1676..d797d8aef33cb2adaa59c81282518a72e13ca3b1 100644
|
| --- a/Source/core/paint/TextPainter.cpp
|
| +++ b/Source/core/paint/TextPainter.cpp
|
| @@ -202,7 +202,7 @@ template <TextPainter::PaintInternalStep Step>
|
| void TextPainter::paintInternal(int startOffset, int endOffset, int truncationPoint, TextBlobPtr* cachedTextBlob)
|
| {
|
| TextRunPaintInfo textRunPaintInfo(m_run);
|
| - textRunPaintInfo.bounds = m_textBounds;
|
| + textRunPaintInfo.bounds = FloatRect(m_textBounds);
|
| if (startOffset <= endOffset) {
|
| // FIXME: We should be able to use cachedTextBlob in more cases.
|
| textRunPaintInfo.cachedTextBlob = cachedTextBlob;
|
| @@ -221,7 +221,7 @@ void TextPainter::paintEmphasisMarkForCombinedText()
|
| DEFINE_STATIC_LOCAL(TextRun, placeholderTextRun, (&ideographicFullStopCharacter, 1));
|
| FloatPoint emphasisMarkTextOrigin(m_textBounds.x().toFloat(), m_textBounds.y().toFloat() + m_font.fontMetrics().ascent() + m_emphasisMarkOffset);
|
| TextRunPaintInfo textRunPaintInfo(placeholderTextRun);
|
| - textRunPaintInfo.bounds = m_textBounds;
|
| + textRunPaintInfo.bounds = FloatRect(m_textBounds);
|
| m_graphicsContext->concatCTM(rotation(m_textBounds, Clockwise));
|
| m_graphicsContext->drawEmphasisMarks(m_combinedText->originalFont(), textRunPaintInfo, m_emphasisMark, emphasisMarkTextOrigin);
|
| m_graphicsContext->concatCTM(rotation(m_textBounds, Counterclockwise));
|
|
|