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

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

Issue 2059093002: Get rid of useless function HitTestResult::spellingToolTip() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-06-13T14:47:06 Created 4 years, 6 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: 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 313c60961fa38c1b8d8dc15b07b556042993da67..46ac39f87723169eb47e8031d066a0c7aa41e57e 100644
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
@@ -239,23 +239,6 @@ bool HitTestResult::isSelected() const
return false;
}
-String HitTestResult::spellingToolTip(TextDirection& dir) const
-{
- dir = LTR;
- // Return the tool tip string associated with this point, if any. Only markers associated with bad grammar
- // currently supply strings, but maybe someday markers associated with misspelled words will also.
- if (!m_innerNode)
- return String();
-
- DocumentMarker* marker = m_innerNode->document().markers().markerContainingPoint(m_hitTestLocation.point(), DocumentMarker::Grammar);
- if (!marker)
- return String();
-
- if (LayoutObject* layoutObject = m_innerNode->layoutObject())
- dir = layoutObject->style()->direction();
- return marker->description();
-}
-
String HitTestResult::title(TextDirection& dir) const
{
dir = LTR;
« no previous file with comments | « third_party/WebKit/Source/core/layout/HitTestResult.h ('k') | third_party/WebKit/Source/core/page/ChromeClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698