Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1191)

Unified Diff: Source/core/layout/LayoutInline.cpp

Issue 1032823003: Refactor HitTestResult to store the HitTestRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comments Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/LayoutInline.h ('k') | Source/core/layout/LayoutMultiColumnSpannerPlaceholder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutInline.cpp
diff --git a/Source/core/layout/LayoutInline.cpp b/Source/core/layout/LayoutInline.cpp
index eecac14e3a1fa0d1c0fa120d13e2944fdb3cb3c8..cf86745e89c6489d73927d1e3015fdb6bc7da7b8 100644
--- a/Source/core/layout/LayoutInline.cpp
+++ b/Source/core/layout/LayoutInline.cpp
@@ -785,10 +785,10 @@ const char* LayoutInline::name() const
return "LayoutInline";
}
-bool LayoutInline::nodeAtPoint(const HitTestRequest& request, HitTestResult& result,
+bool LayoutInline::nodeAtPoint(HitTestResult& result,
const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction hitTestAction)
{
- return m_lineBoxes.hitTest(this, request, result, locationInContainer, accumulatedOffset, hitTestAction);
+ return m_lineBoxes.hitTest(this, result, locationInContainer, accumulatedOffset, hitTestAction);
}
namespace {
@@ -810,10 +810,10 @@ private:
} // unnamed namespace
-bool LayoutInline::hitTestCulledInline(const HitTestRequest& request, HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset)
+bool LayoutInline::hitTestCulledInline(HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset)
{
ASSERT(result.isRectBasedTest() && !alwaysCreateLineBoxes());
- if (!visibleToHitTestRequest(request))
+ if (!visibleToHitTestRequest(result.hitTestRequest()))
return false;
HitTestLocation tmpLocation(locationInContainer, -toLayoutSize(accumulatedOffset));
@@ -826,7 +826,7 @@ bool LayoutInline::hitTestCulledInline(const HitTestRequest& request, HitTestRes
updateHitTestResult(result, tmpLocation.point());
// We can not use addNodeToListBasedTestResult to determine if we fully enclose the hit-test area
// because it can only handle rectangular targets.
- result.addNodeToListBasedTestResult(node(), request, locationInContainer);
+ result.addNodeToListBasedTestResult(node(), locationInContainer);
return regionResult.contains(tmpLocation.boundingBox());
}
return false;
« no previous file with comments | « Source/core/layout/LayoutInline.h ('k') | Source/core/layout/LayoutMultiColumnSpannerPlaceholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698