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

Unified Diff: Source/core/dom/Document.cpp

Issue 1142283004: Implement a Hit Test Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix git cl format mangling 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/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index d85fa40c092391c457b3c51c2864d547ea6f4d7e..cafc5a4edb63f3772d2c02291cabc248a1f4d840 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1227,7 +1227,7 @@ PassRefPtrWillBeRawPtr<Range> Document::caretRangeFromPoint(int x, int y)
if (!layoutView())
return nullptr;
- HitTestResult result = hitTestInDocument(this, x, y);
+ HitTestResult result = hitTestInDocument(this, x, y, true);
Rick Byers 2015/06/05 20:48:59 This pattern is generally frowned upon in Google C
esprehn 2015/06/06 21:14:29 Yes, please no bools like this.
dtapuska 2015/06/09 18:21:23 Done.
dtapuska 2015/06/09 18:21:23 Done.
PositionWithAffinity positionWithAffinity = result.position();
if (positionWithAffinity.position().isNull())
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698