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

Unified Diff: Source/core/rendering/RenderPart.cpp

Issue 869813003: Implement elementsFromPoint (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix typeo Created 5 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: Source/core/rendering/RenderPart.cpp
diff --git a/Source/core/rendering/RenderPart.cpp b/Source/core/rendering/RenderPart.cpp
index 33f88c93b1e1551309a59f26fe37c25b975defc4..6601312d37306eed11f89f2340dc2b417fa121b7 100644
--- a/Source/core/rendering/RenderPart.cpp
+++ b/Source/core/rendering/RenderPart.cpp
@@ -182,7 +182,8 @@ bool RenderPart::nodeAtPoint(const HitTestRequest& request, HitTestResult& resul
bool isInsideChildFrame = childRoot->hitTest(newHitTestRequest, newHitTestLocation, childFrameResult);
- if (newHitTestLocation.isRectBasedTest())
+ ASSERT(!newHitTestLocation.isRectBasedTest() || request.listBased());
+ if (request.listBased())
result.append(childFrameResult);
else if (isInsideChildFrame)
result = childFrameResult;

Powered by Google App Engine
This is Rietveld 408576698