Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Issue 2834343002: Make InputMethodController::TextInputType() to use canonicalized position (Closed)

Created:
3 years, 8 months ago by yosin_UTC9
Modified:
3 years, 8 months ago
Reviewers:
tkent, yoichio, Xiaocheng
CC:
blink-reviews, chromium-reviews, amineer
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make InputMethodController::TextInputType() to use canonicalized position Make InputMethodController::TextInputType() to use canonicalized position This patch changes |RootEditableElementOfSelection()| to use canonicalized position as workaround for applications depend buggy behavior of Blink. Before patch[1], |InputMethodController| to check editability of selection by using |VisibleSelection::Start()|. After patch[1], |InputMethodController| to use |SelectionInDOMTree::Base()|. The buggy behavior of Blink caused by using |VisibleSelection::Start()| which returns inside of editable even if scripts specified before editable. For example, simpler version of Google Docs/Presentations: <html> <head>...</head> <body contenteditable>...</body> </html> Google Docs/Presentations set selection to a position HTML@1 where before BODY element. In this case, |VisibleSelection::Start()| == BODY@0 due by visible position canonicalization. [1] http://crrev.com/2782413002 Get rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController BUG=711396, 712761, 714507 TEST=run_webkit_unit_tests --gtest_filter=InputMethodControllerTest.TextInputTypeAtBeforeEditable Review-Url: https://codereview.chromium.org/2834343002 Cr-Commit-Position: refs/heads/master@{#466612} Committed: https://chromium.googlesource.com/chromium/src/+/f0600844152acd9e12e486ecfd49ae492f67517c

Patch Set 1 : 2017-04-24T15:09:42 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -2 lines) Patch
M third_party/WebKit/Source/core/editing/InputMethodController.cpp View 1 chunk +19 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (10 generated)
yosin_UTC9
PTAL This patch fixes ReleaseBlock-Beta. I would like to land this patch today to unblock ...
3 years, 8 months ago (2017-04-24 07:21:16 UTC) #6
yoichio
Sigh,,, we should contact docs team. Anyway, lgtm.
3 years, 8 months ago (2017-04-24 09:33:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2834343002/1
3 years, 8 months ago (2017-04-24 09:35:36 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 09:39:02 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/f0600844152acd9e12e486ecfd49...

Powered by Google App Engine
This is Rietveld 408576698