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

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

Issue 1326563002: Introduce visiblePositionOf() with PositionWithAffinity as replacement of VisiblePosition constructo (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-09-01T10:55:04 Created 5 years, 4 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
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/HitTestResult.cpp
diff --git a/Source/core/layout/HitTestResult.cpp b/Source/core/layout/HitTestResult.cpp
index 2eb6c81e8298ac0347d7b9f94f9c3d85f30d076f..efbab2fa6ee4f3127092be8f612ddf69d06c85c3 100644
--- a/Source/core/layout/HitTestResult.cpp
+++ b/Source/core/layout/HitTestResult.cpp
@@ -386,11 +386,13 @@ bool HitTestResult::isLiveLink() const
return m_innerURLElement && m_innerURLElement->isLiveLink();
}
+// TODO(yosin) We should move |HitTestResult::isMisspelled()| to
+// "SelectionController.cpp" as static function.
bool HitTestResult::isMisspelled() const
{
if (!innerNode() || !innerNode()->layoutObject())
return false;
- VisiblePosition pos(innerNode()->layoutObject()->positionForPoint(localPoint()));
+ VisiblePosition pos = visiblePositionOf(innerNode()->layoutObject()->positionForPoint(localPoint()));
if (pos.isNull())
return false;
return m_innerNode->document().markers().markersInRange(
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698