summaryrefslogtreecommitdiffstats
path: root/WebKitTools/DumpRenderTree/mac/TextInputController.m
diff options
context:
space:
mode:
Diffstat (limited to 'WebKitTools/DumpRenderTree/mac/TextInputController.m')
-rw-r--r--WebKitTools/DumpRenderTree/mac/TextInputController.m11
1 files changed, 10 insertions, 1 deletions
diff --git a/WebKitTools/DumpRenderTree/mac/TextInputController.m b/WebKitTools/DumpRenderTree/mac/TextInputController.m
index 3ea9c22..a049ac5 100644
--- a/WebKitTools/DumpRenderTree/mac/TextInputController.m
+++ b/WebKitTools/DumpRenderTree/mac/TextInputController.m
@@ -33,6 +33,7 @@
#import <AppKit/NSInputManager.h>
#import <WebKit/WebDocument.h>
#import <WebKit/WebFrame.h>
+#import <WebKit/WebFramePrivate.h>
#import <WebKit/WebFrameView.h>
#import <WebKit/WebHTMLViewPrivate.h>
#import <WebKit/WebScriptObject.h>
@@ -169,7 +170,8 @@
|| aSelector == @selector(characterIndexForPointX:Y:)
|| aSelector == @selector(validAttributesForMarkedText)
|| aSelector == @selector(attributedStringWithString:)
- || aSelector == @selector(setInputMethodHandler:))
+ || aSelector == @selector(setInputMethodHandler:)
+ || aSelector == @selector(hasSpellingMarker:length:))
return NO;
return YES;
}
@@ -194,6 +196,8 @@
return @"makeAttributedString"; // just a factory method, doesn't call into NSTextInput
else if (aSelector == @selector(setInputMethodHandler:))
return @"setInputMethodHandler";
+ else if (aSelector == @selector(hasSpellingMarker:length:))
+ return @"hasSpellingMarker";
return nil;
}
@@ -427,4 +431,9 @@
return YES;
}
+- (BOOL)hasSpellingMarker:(int)from length:(int)length
+{
+ return [[webView mainFrame] hasSpellingMarker:from length:length];
+}
+
@end