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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceClipper.cpp

Issue 1032823003: Refactor HitTestResult to store the HitTestRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updating 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
Index: Source/core/layout/svg/LayoutSVGResourceClipper.cpp
diff --git a/Source/core/layout/svg/LayoutSVGResourceClipper.cpp b/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
index abf1092c4b74cfc7473056648694d3e6efe4ffd7..7c7dbe61732327283f0c1fe38293f967b486dff0 100644
--- a/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
@@ -247,8 +247,8 @@ bool LayoutSVGResourceClipper::hitTestClipContent(const FloatRect& objectBoundin
if (!layoutObject->isSVGShape() && !layoutObject->isSVGText() && !isSVGUseElement(*childElement))
continue;
IntPoint hitPoint;
- HitTestResult result(hitPoint);
- if (layoutObject->nodeAtFloatPoint(HitTestRequest(HitTestRequest::SVGClipContent), result, point, HitTestForeground))
+ HitTestResult result(HitTestRequest(HitTestRequest::SVGClipContent), hitPoint);
Rick Byers 2015/03/31 13:53:42 nit: is the 'HitTestRequest' here required or can
ramya.v 2015/04/01 07:13:00 Done.
+ if (layoutObject->nodeAtFloatPoint(result, point, HitTestForeground))
return true;
}

Powered by Google App Engine
This is Rietveld 408576698