diff options
Diffstat (limited to 'WebKitTools/DumpRenderTree/chromium/TextInputController.cpp')
-rw-r--r-- | WebKitTools/DumpRenderTree/chromium/TextInputController.cpp | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/WebKitTools/DumpRenderTree/chromium/TextInputController.cpp b/WebKitTools/DumpRenderTree/chromium/TextInputController.cpp index 4f06874..7af4e9f 100644 --- a/WebKitTools/DumpRenderTree/chromium/TextInputController.cpp +++ b/WebKitTools/DumpRenderTree/chromium/TextInputController.cpp @@ -32,11 +32,11 @@ #include "TextInputController.h" #include "TestShell.h" -#include "public/WebBindings.h" -#include "public/WebFrame.h" -#include "public/WebRange.h" -#include "public/WebString.h" -#include "public/WebView.h" +#include "WebBindings.h" +#include "WebFrame.h" +#include "WebRange.h" +#include "WebString.h" +#include "WebView.h" #include <wtf/StringExtras.h> #include <string> @@ -58,7 +58,6 @@ TextInputController::TextInputController(TestShell* shell) bindMethod("doCommand", &TextInputController::doCommand); bindMethod("firstRectForCharacterRange", &TextInputController::firstRectForCharacterRange); bindMethod("hasMarkedText", &TextInputController::hasMarkedText); - bindMethod("hasSpellingMarker", &TextInputController::hasSpellingMarker); bindMethod("insertText", &TextInputController::insertText); bindMethod("makeAttributedString", &TextInputController::makeAttributedString); bindMethod("markedRange", &TextInputController::markedRange); @@ -233,14 +232,3 @@ void TextInputController::makeAttributedString(const CppArgumentList&, CppVarian // FIXME: Implement this. result->setNull(); } - -void TextInputController::hasSpellingMarker(const CppArgumentList& arguments, CppVariant* result) -{ - if (arguments.size() < 2 || !arguments[0].isNumber() || !arguments[1].isNumber()) - return; - WebFrame* mainFrame = getMainFrame(); - if (!mainFrame) - return; - // Returns as a number for a compatibility reason. - result->set(mainFrame->selectionStartHasSpellingMarkerFor(arguments[0].toInt32(), arguments[1].toInt32()) ? 1 : 0); -} |