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

Unified Diff: third_party/WebKit/Source/core/layout/line/EllipsisBox.cpp

Issue 1630793002: Stop hit testing culled inlines when a match is found (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simpler approach, but duplicated code Created 4 years, 11 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: third_party/WebKit/Source/core/layout/line/EllipsisBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/EllipsisBox.cpp b/third_party/WebKit/Source/core/layout/line/EllipsisBox.cpp
index ff7f9d518ebedbcaa959b848c9d706b8ef32bbb1..4cb7c30cc0ede08c34ed6b0bc7fb1c57e3c73b77 100644
--- a/third_party/WebKit/Source/core/layout/line/EllipsisBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/EllipsisBox.cpp
@@ -53,9 +53,7 @@ bool EllipsisBox::nodeAtPoint(HitTestResult& result, const HitTestLocation& loca
LayoutRect boundsRect(boxOrigin, size());
if (visibleToHitTestRequest(result.hitTestRequest()) && boundsRect.intersects(LayoutRect(HitTestLocation::rectForPoint(locationInContainer.point(), 0, 0, 0, 0)))) {
lineLayoutItem().updateHitTestResult(result, locationInContainer.point() - toLayoutSize(adjustedLocation));
- // FIXME: the call to rawValue() below is temporary and should be removed once the transition
- // to LayoutUnit-based types is complete (crbug.com/321237)
- if (!result.addNodeToListBasedTestResult(lineLayoutItem().node(), locationInContainer, boundsRect))
+ if (result.addNodeToListBasedTestResult(lineLayoutItem().node(), locationInContainer, boundsRect) == StopHitTesting)
return true;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698