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

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

Issue 2350773004: Move HitTestResult::isMisspelled to SelectionController (Closed)
Patch Set: Remove DocumentMarkerController.h from include 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..8aa9c83f29c1c0476832b5e2bd8c24a7bec54f54 100644
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
@@ -28,7 +28,6 @@
#include "core/dom/shadow/ShadowRoot.h"
#include "core/editing/EditingUtilities.h"
#include "core/editing/FrameSelection.h"
-#include "core/editing/markers/DocumentMarkerController.h"
#include "core/frame/LocalFrame.h"
#include "core/html/HTMLAreaElement.h"
#include "core/html/HTMLImageElement.h"
@@ -358,19 +357,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