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

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

Issue 1142283004: Implement a Hit Test Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index ea3e8a38731fcb5579ab27e653bd98016a5963d9..4db3cfcf44820ba4e2f10573602b99a911f70bd3 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -2658,11 +2658,12 @@ bool LayoutObject::hitTest(HitTestResult& result, const HitTestLocation& locatio
return inside;
}
-void LayoutObject::updateHitTestResult(HitTestResult& result, const LayoutPoint& point)
+void LayoutObject::updateHitTestResult(HitTestResult& result, const LayoutPoint& point, const LayoutRect& rect)
{
if (result.innerNode())
return;
+ result.intersectValidityRect(rect);
Node* node = this->node();
// If we hit the anonymous layoutObjects inside generated content we should

Powered by Google App Engine
This is Rietveld 408576698