| Index: Source/core/rendering/EllipsisBox.cpp
|
| diff --git a/Source/core/rendering/EllipsisBox.cpp b/Source/core/rendering/EllipsisBox.cpp
|
| index 1af8374d047557e901198679a2abcdb7d955cb8d..b61d7505fa02a218ae4dfde2293fa3439b07b049 100644
|
| --- a/Source/core/rendering/EllipsisBox.cpp
|
| +++ b/Source/core/rendering/EllipsisBox.cpp
|
| @@ -59,7 +59,7 @@ InlineBox* EllipsisBox::markupBox() const
|
|
|
| IntRect EllipsisBox::selectionRect()
|
| {
|
| - RenderStyle* style = renderer().style(isFirstLineStyle());
|
| + const RenderStyle* style = renderer().style(isFirstLineStyle());
|
| const Font& font = style->font();
|
| return enclosingIntRect(font.selectionRectForText(constructTextRun(&renderer(), font, m_str, style, TextRun::AllowTrailingExpansion), IntPoint(logicalLeft(), logicalTop() + root().selectionTopAdjustedForPrecedingBlock()), root().selectionHeightAdjustedForPrecedingBlock()));
|
| }
|
| @@ -72,7 +72,7 @@ bool EllipsisBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& resu
|
|
|
| // Hit test the markup box.
|
| if (InlineBox* markupBox = this->markupBox()) {
|
| - RenderStyle* style = renderer().style(isFirstLineStyle());
|
| + const RenderStyle* style = renderer().style(isFirstLineStyle());
|
| LayoutUnit mtx = adjustedLocation.x() + m_logicalWidth - markupBox->x();
|
| LayoutUnit mty = adjustedLocation.y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer().style(isFirstLineStyle())->fontMetrics().ascent());
|
| if (markupBox->nodeAtPoint(request, result, locationInContainer, LayoutPoint(mtx, mty), lineTop, lineBottom)) {
|
|
|