Bug 47803 - [Meta] Portable part of TextInputController API should be owned by LayoutTestController
Summary: [Meta] Portable part of TextInputController API should be owned by LayoutTest...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-18 00:54 PDT by Hajime Morrita
Modified: 2010-10-18 18:06 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hajime Morrita 2010-10-18 00:54:30 PDT
Derived from Bug 47659. Following set of TextInputController API is not IM framework specific and 
should be available via LayoutController.

- textInputController.attributedSubstringFromRange
- textInputController.firstRectForCharacterRange
- textInputController.selectedRange
- textInputController.hasSpellingMarker
Comment 1 Alexey Proskuryakov 2010-10-18 11:00:46 PDT
The original idea was that TextInputController implements AppKit NSTextInput protocol. I'm not sure where hasSpellingMarker came from.
Comment 2 Hajime Morrita 2010-10-18 18:06:43 PDT
(In reply to comment #1)
> The original idea was that TextInputController implements AppKit NSTextInput protocol. I'm not sure where hasSpellingMarker came from.
Sure!
So I keep NSTxtInput originated method, 
and will add aliases or introduce test-specific APIs to DRT.
The goal of this change is to make IM-independent editing tests portable.