New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 689580 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

In WebInputMethodController::setComposition, replace |selectionStart| and |selectionEnd| with WebRange

Project Member Reported by ekaramad@chromium.org, Feb 7 2017

Issue description

In WebInputMethodController::setComposition, replace |selectionStart| and |selectionEnd| with WebRange.
 
Labels: -Type-Bug Type-Feature
Status: WontFix (was: Assigned)
Taking a second look at this bug I suppose this should be a Won't Fix. blink::WebRange considers any range with either |start_ == -1| or |end_ == -1| as invalid. On the other hand, we do allow negative valued selection{Start, End}, e.g., PTAL |WebViewTest.SetCompositionForNewCaretPositions|.

That being said we might be able to still use WebRange to hold both negative values but that voids the meaning of WebRange::IsNull(). So I guess we should not proceed with this refactoring.

Supposedly a SelectionRange struct which would allow negative start and end and even start > end would be the right choice here.

Please undo the status change if you believe we should do more.

Sign in to add a comment