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

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

Issue 2350773004: Move HitTestResult::isMisspelled to SelectionController (Closed)
Patch Set: Created 4 years, 3 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 | « third_party/WebKit/Source/core/layout/HitTestResult.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/HitTestResult.cpp
diff --git a/third_party/WebKit/Source/core/layout/HitTestResult.cpp b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
index 46428054f787f5b30b94b89e13d7ecdd4914c02e..5973833c8f87691a237426d9c44309571a7733c3 100644
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
@@ -358,19 +358,6 @@ bool HitTestResult::isLiveLink() const
return m_innerURLElement && m_innerURLElement->isLiveLink();
}
-// TODO(xiaochengh): We should move |HitTestResult::isMisspelled()| to
-// "SelectionController.cpp" as static function.
-bool HitTestResult::isMisspelled() const
-{
- if (!innerNode() || !innerNode()->layoutObject())
- return false;
- VisiblePosition pos = createVisiblePosition(innerNode()->layoutObject()->positionForPoint(localPoint()));
- if (pos.isNull())
- return false;
- return m_innerNode->document().markers().markersInRange(
- EphemeralRange(pos.deepEquivalent().parentAnchoredEquivalent()), DocumentMarker::MisspellingMarkers()).size() > 0;
-}
-
bool HitTestResult::isOverLink() const
{
return m_innerURLElement && m_innerURLElement->isLink();
« no previous file with comments | « third_party/WebKit/Source/core/layout/HitTestResult.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698