| 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(
|
|
|