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

Unified Diff: Source/core/layout/LayoutTextFragment.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/LayoutTextFragment.cpp
diff --git a/Source/core/layout/LayoutTextFragment.cpp b/Source/core/layout/LayoutTextFragment.cpp
index 0850f7cd4fc81102612d5370293963215aec4903..c4aa36c8e8b98786c420981f63ccc6e7a5449b34 100644
--- a/Source/core/layout/LayoutTextFragment.cpp
+++ b/Source/core/layout/LayoutTextFragment.cpp
@@ -155,12 +155,12 @@ Text* LayoutTextFragment::associatedTextNode() const
return (node && node->isTextNode()) ? toText(node) : nullptr;
}
-void LayoutTextFragment::updateHitTestResult(HitTestResult& result, const LayoutPoint& point)
+void LayoutTextFragment::updateHitTestResult(HitTestResult& result, const LayoutPoint& point, const LayoutRect& rect)
{
if (result.innerNode())
return;
- LayoutObject::updateHitTestResult(result, point);
+ LayoutObject::updateHitTestResult(result, point, rect);
// If we aren't part of a first-letter element, or if we
// are part of first-letter but we're the remaining text then return.

Powered by Google App Engine
This is Rietveld 408576698