Chromium Code Reviews| Index: Source/web/WebViewImpl.cpp |
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
| index 1d3f446d1e4acd57d7eb6a03c54d22d081d766d6..1b28d915accd712dc17dd20f4f1a735ae7394171 100644 |
| --- a/Source/web/WebViewImpl.cpp |
| +++ b/Source/web/WebViewImpl.cpp |
| @@ -2356,8 +2356,9 @@ WebTextInputInfo WebViewImpl::textInputInfo() |
| if (info.value.isEmpty()) |
| return info; |
| - if (RefPtrWillBeRawPtr<Range> range = firstRangeOf(selection.selection())) { |
| - PlainTextRange plainTextRange(PlainTextRange::create(*element, *range.get())); |
| + EphemeralRange firstRange = firstEphemeralRangeOf(selection.selection()); |
|
yosin_UTC9
2015/09/10 06:37:04
nit: |const EphemeralRange|
|
| + if (firstRange.isNotNull()) { |
| + PlainTextRange plainTextRange(PlainTextRange::create(*element, firstRange)); |
| if (plainTextRange.isNotNull()) { |
| info.selectionStart = plainTextRange.start(); |
| info.selectionEnd = plainTextRange.end(); |