| Index: Source/core/rendering/EllipsisBox.cpp
|
| diff --git a/Source/core/rendering/EllipsisBox.cpp b/Source/core/rendering/EllipsisBox.cpp
|
| index 9f3e0262827d12d6660dfb49e18ad54df0dab8f1..ee1f0667c560cecafd0759e145a3753b32b391d6 100644
|
| --- a/Source/core/rendering/EllipsisBox.cpp
|
| +++ b/Source/core/rendering/EllipsisBox.cpp
|
| @@ -36,7 +36,7 @@ namespace WebCore {
|
| void EllipsisBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, LayoutUnit lineTop, LayoutUnit lineBottom)
|
| {
|
| GraphicsContext* context = paintInfo.context;
|
| - RenderStyle* style = renderer().style(isFirstLineStyle());
|
| + RenderStyle* style = renderer().styleOrFirstLineStyle(isFirstLineStyle());
|
|
|
| const Font& font = style->font();
|
| FloatPoint boxOrigin = locationIncludingFlipping();
|
| @@ -121,13 +121,13 @@ void EllipsisBox::paintMarkupBox(PaintInfo& paintInfo, const LayoutPoint& paintO
|
|
|
| LayoutPoint adjustedPaintOffset = paintOffset;
|
| adjustedPaintOffset.move(x() + m_logicalWidth - markupBox->x(),
|
| - y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer().style(isFirstLineStyle())->fontMetrics().ascent()));
|
| + y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer().styleOrFirstLineStyle(isFirstLineStyle())->fontMetrics().ascent()));
|
| markupBox->paint(paintInfo, adjustedPaintOffset, lineTop, lineBottom);
|
| }
|
|
|
| IntRect EllipsisBox::selectionRect()
|
| {
|
| - RenderStyle* style = renderer().style(isFirstLineStyle());
|
| + RenderStyle* style = renderer().styleOrFirstLineStyle(isFirstLineStyle());
|
| const Font& font = style->font();
|
| return enclosingIntRect(font.selectionRectForText(RenderBlockFlow::constructTextRun(&renderer(), font, m_str, style, TextRun::AllowTrailingExpansion), IntPoint(logicalLeft(), logicalTop() + root().selectionTopAdjustedForPrecedingBlock()), root().selectionHeightAdjustedForPrecedingBlock()));
|
| }
|
| @@ -162,9 +162,9 @@ bool EllipsisBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& resu
|
|
|
| // Hit test the markup box.
|
| if (InlineBox* markupBox = this->markupBox()) {
|
| - RenderStyle* style = renderer().style(isFirstLineStyle());
|
| + RenderStyle* style = renderer().styleOrFirstLineStyle(isFirstLineStyle());
|
| LayoutUnit mtx = adjustedLocation.x() + m_logicalWidth - markupBox->x();
|
| - LayoutUnit mty = adjustedLocation.y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer().style(isFirstLineStyle())->fontMetrics().ascent());
|
| + LayoutUnit mty = adjustedLocation.y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer().styleOrFirstLineStyle(isFirstLineStyle())->fontMetrics().ascent());
|
| if (markupBox->nodeAtPoint(request, result, locationInContainer, LayoutPoint(mtx, mty), lineTop, lineBottom)) {
|
| renderer().updateHitTestResult(result, locationInContainer.point() - LayoutSize(mtx, mty));
|
| return true;
|
|
|