Index: Source/core/layout/line/InlineTextBox.cpp |
diff --git a/Source/core/layout/line/InlineTextBox.cpp b/Source/core/layout/line/InlineTextBox.cpp |
index f32962ec841f1dec86c4abbfb6fd6cb6a44ba14b..cab41b5d67383665a3bea7b432c31132400a05f6 100644 |
--- a/Source/core/layout/line/InlineTextBox.cpp |
+++ b/Source/core/layout/line/InlineTextBox.cpp |
@@ -311,7 +311,7 @@ bool InlineTextBox::isLineBreak() const |
return layoutObject().isBR() || (layoutObject().style()->preserveNewline() && len() == 1 && (*layoutObject().text().impl())[start()] == '\n'); |
} |
-bool InlineTextBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit /* lineTop */, LayoutUnit /*lineBottom*/) |
+bool InlineTextBox::nodeAtPoint(HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit /* lineTop */, LayoutUnit /*lineBottom*/) |
{ |
if (isLineBreak()) |
return false; |
@@ -321,9 +321,9 @@ bool InlineTextBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& re |
FloatRectWillBeLayoutRect rect(boxOrigin, size()); |
// FIXME: both calls to rawValue() below is temporary and should be removed once the transition |
// to LayoutUnit-based types is complete (crbug.com/321237) |
- if (m_truncation != cFullTruncation && visibleToHitTestRequest(request) && locationInContainer.intersects(rect.rawValue())) { |
+ if (m_truncation != cFullTruncation && visibleToHitTestRequest(result.hitTestRequest()) && locationInContainer.intersects(rect.rawValue())) { |
layoutObject().updateHitTestResult(result, flipForWritingMode(locationInContainer.point() - toLayoutSize(accumulatedOffset))); |
- if (!result.addNodeToListBasedTestResult(layoutObject().node(), request, locationInContainer, rect.rawValue())) |
+ if (!result.addNodeToListBasedTestResult(layoutObject().node(), locationInContainer, rect.rawValue())) |
return true; |
} |
return false; |