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

Issue 2200833007: Change return value of FrameSelection::modify() to prevent unnecessary window scrolling (Closed)

Created:
4 years, 4 months ago by yosin_UTC9
Modified:
4 years, 4 months ago
Reviewers:
yoichio, Xiaocheng
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change return value of FrameSelection::modify() to prevent unnecessary window scrolling This patch changes return value of |FrameSelection::modify()| to prevent unnecessary window scrolling by returning true, indicating user action is processed. Note: for spacial navigation case, |FrameSelection::modify()| returns false to allow default key event handler of spacial navigation to move focus to another element. Before this patch, hitting right arrow key at end of text field causes window scrolling by WebViewImpl::keyEventDefault() due by |FrameSelection::modify()| returns false since selection isn't changed. BUG=633376 TEST=run_webkit_unit_tests --gtest_filter=FrameSelectionTest.ModifyWithUserTriggered Committed: https://crrev.com/8e786c79ce204adb73db01db98f5a606c8365c2a Cr-Commit-Position: refs/heads/master@{#409995}

Patch Set 1 : 2016-08-03T16:34:59 #

Patch Set 2 : 2016-08-03T18:38:52 #

Patch Set 3 : 2016-08-04T10:29:12 #

Total comments: 4

Patch Set 4 : 2016-08-05T13:02:14 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -2 lines) Patch
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 3 chunks +18 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (19 generated)
yosin_UTC9
PTAL
4 years, 4 months ago (2016-08-04 08:50:48 UTC) #17
Xiaocheng
lgtm with some wording suggestions https://codereview.chromium.org/2200833007/diff/40001/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp File third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp (right): https://codereview.chromium.org/2200833007/diff/40001/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp#newcode189 third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp:189: << "Selection.modify() returns false ...
4 years, 4 months ago (2016-08-05 01:51:25 UTC) #18
yosin_UTC9
Thanks for reviewing! Committing... https://codereview.chromium.org/2200833007/diff/40001/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp File third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp (right): https://codereview.chromium.org/2200833007/diff/40001/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp#newcode189 third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp:189: << "Selection.modify() returns false for ...
4 years, 4 months ago (2016-08-05 04:03:12 UTC) #19
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/2200833007/60001
4 years, 4 months ago (2016-08-05 04:03:32 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-05 05:34:19 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 05:35:31 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8e786c79ce204adb73db01db98f5a606c8365c2a
Cr-Commit-Position: refs/heads/master@{#409995}

Powered by Google App Engine
This is Rietveld 408576698