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

Issue 797463003: spatnav: Allow focus move to a close-by not-fully-aligned node over a distant but fully-aligned nod… (Closed)

Created:
6 years ago by c.shu
Modified:
5 years, 11 months ago
Reviewers:
Krzysztof Olczyk, fs
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

spatnav: Allow focus move to a close-by not-fully-aligned node over a distant but fully-aligned node. The original algorithm favors a fully-aligned node over any partially- or none-aligned nodes no matter how far the former is. This is against intuition. The improved algorithm gives a more-aligned node a weight so that it's more likely to be chosen but not definitely. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188642

Patch Set 1 #

Total comments: 3

Patch Set 2 : use weight in orthogonal distance calculation. #

Total comments: 1

Patch Set 3 : address reviewer comments #

Patch Set 4 : fix not-aligned node issue #

Total comments: 5

Patch Set 5 : Address reviewer comments #

Patch Set 6 : rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -238 lines) Patch
A + LayoutTests/fast/spatial-navigation/snav-aligned-not-aligned.html View 1 2 3 1 chunk +27 lines, -17 lines 0 comments Download
A + LayoutTests/fast/spatial-navigation/snav-aligned-not-aligned-expected.txt View 1 2 3 1 chunk +5 lines, -9 lines 0 comments Download
M LayoutTests/fast/spatial-navigation/snav-fully-aligned-vertically.html View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/spatial-navigation/snav-fully-aligned-vertically-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/fast/spatial-navigation/snav-symmetrically-positioned.html View 1 2 1 chunk +21 lines, -33 lines 0 comments Download
A + LayoutTests/fast/spatial-navigation/snav-symmetrically-positioned-expected.txt View 1 2 1 chunk +4 lines, -7 lines 0 comments Download
M Source/core/page/FocusController.cpp View 1 2 3 4 5 2 chunks +2 lines, -8 lines 0 comments Download
M Source/core/page/SpatialNavigation.h View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M Source/core/page/SpatialNavigation.cpp View 1 2 3 4 5 6 chunks +26 lines, -156 lines 0 comments Download

Messages

Total messages: 35 (6 generated)
c.shu
This patch may be controversial but let's start the discussion.
6 years ago (2014-12-12 18:38:45 UTC) #2
Krzysztof Olczyk
On 2014/12/12 at 18:38:45, c.shu wrote: > This patch may be controversial but let's start ...
6 years ago (2014-12-15 07:58:49 UTC) #3
fs
https://codereview.chromium.org/797463003/diff/1/Source/core/page/SpatialNavigation.cpp File Source/core/page/SpatialNavigation.cpp (right): https://codereview.chromium.org/797463003/diff/1/Source/core/page/SpatialNavigation.cpp#newcode691 Source/core/page/SpatialNavigation.cpp:691: RectsAlignment alignment = alignmentForRects(type, currentRect, nodeRect, viewSize); Should the ...
6 years ago (2014-12-15 11:36:10 UTC) #4
c.shu
https://codereview.chromium.org/797463003/diff/1/Source/core/page/SpatialNavigation.cpp File Source/core/page/SpatialNavigation.cpp (right): https://codereview.chromium.org/797463003/diff/1/Source/core/page/SpatialNavigation.cpp#newcode691 Source/core/page/SpatialNavigation.cpp:691: RectsAlignment alignment = alignmentForRects(type, currentRect, nodeRect, viewSize); On 2014/12/15 ...
6 years ago (2014-12-15 18:17:37 UTC) #5
c.shu
On 2014/12/15 07:58:49, Krzysztof Olczyk wrote: > On 2014/12/12 at 18:38:45, c.shu wrote: > > ...
6 years ago (2014-12-15 18:17:59 UTC) #6
fs
https://codereview.chromium.org/797463003/diff/1/Source/core/page/SpatialNavigation.cpp File Source/core/page/SpatialNavigation.cpp (right): https://codereview.chromium.org/797463003/diff/1/Source/core/page/SpatialNavigation.cpp#newcode691 Source/core/page/SpatialNavigation.cpp:691: RectsAlignment alignment = alignmentForRects(type, currentRect, nodeRect, viewSize); On 2014/12/15 ...
6 years ago (2014-12-16 13:15:42 UTC) #7
c.shu
> The WICD distance calculation includes a weight already as I understand - the > ...
6 years ago (2014-12-16 15:29:34 UTC) #8
c.shu
The new patch adds penalty to orthogonal distance. This simplifies the code a lot. We ...
6 years ago (2014-12-16 22:51:45 UTC) #9
fs
On 2014/12/16 22:51:45, c.shu wrote: > The new patch adds penalty to orthogonal distance. This ...
6 years ago (2014-12-17 09:51:11 UTC) #10
c.shu
On 2014/12/17 09:51:11, fs wrote: > On 2014/12/16 22:51:45, c.shu wrote: > > The new ...
6 years ago (2014-12-19 18:15:19 UTC) #11
fs
On 2014/12/19 18:15:19, c.shu wrote: > On 2014/12/17 09:51:11, fs wrote: > > On 2014/12/16 ...
6 years ago (2014-12-19 18:29:13 UTC) #12
c.shu
Non-square also mean general rectangles (sides differing in length.) I noticed that squares were popoular ...
6 years ago (2014-12-19 19:50:42 UTC) #13
c.shu
On 2014/12/19 19:50:42, c.shu wrote: > Non-square also mean general rectangles (sides differing in length.) ...
6 years ago (2014-12-23 18:37:11 UTC) #14
fs
I think we'd still like to have more tests for this, because magic constants tend ...
5 years, 12 months ago (2014-12-25 16:39:03 UTC) #15
c.shu
On 2014/12/25 16:39:03, fs (OoO) wrote: > I think we'd still like to have more ...
5 years, 11 months ago (2014-12-29 22:33:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/797463003/40001
5 years, 11 months ago (2014-12-29 22:33:58 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/30457)
5 years, 11 months ago (2014-12-29 22:41:04 UTC) #20
c.shu
On 2014/12/29 22:41:04, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 11 months ago (2015-01-09 19:21:33 UTC) #21
fs
https://codereview.chromium.org/797463003/diff/60001/Source/core/page/SpatialNavigation.cpp File Source/core/page/SpatialNavigation.cpp (right): https://codereview.chromium.org/797463003/diff/60001/Source/core/page/SpatialNavigation.cpp#newcode90 Source/core/page/SpatialNavigation.cpp:90: static bool areRectsNotAligned(FocusType type, const LayoutRect& a, const LayoutRect& ...
5 years, 11 months ago (2015-01-12 12:07:23 UTC) #22
c.shu
https://codereview.chromium.org/797463003/diff/60001/Source/core/page/SpatialNavigation.cpp File Source/core/page/SpatialNavigation.cpp (right): https://codereview.chromium.org/797463003/diff/60001/Source/core/page/SpatialNavigation.cpp#newcode90 Source/core/page/SpatialNavigation.cpp:90: static bool areRectsNotAligned(FocusType type, const LayoutRect& a, const LayoutRect& ...
5 years, 11 months ago (2015-01-12 18:03:38 UTC) #23
fs
https://codereview.chromium.org/797463003/diff/60001/Source/core/page/SpatialNavigation.cpp File Source/core/page/SpatialNavigation.cpp (right): https://codereview.chromium.org/797463003/diff/60001/Source/core/page/SpatialNavigation.cpp#newcode541 Source/core/page/SpatialNavigation.cpp:541: yAxis += currentRect.height() / 2; On 2015/01/12 18:03:38, c.shu ...
5 years, 11 months ago (2015-01-13 09:26:04 UTC) #24
c.shu
> I get the part about 0, but why not for instance (yAxis + bias) ...
5 years, 11 months ago (2015-01-13 15:50:54 UTC) #25
fs
On 2015/01/13 15:50:54, c.shu wrote: ... > > > I thought the height of the ...
5 years, 11 months ago (2015-01-13 16:03:05 UTC) #26
c.shu
On 2015/01/13 16:03:05, fs wrote: > On 2015/01/13 15:50:54, c.shu wrote: > ... > > ...
5 years, 11 months ago (2015-01-16 19:47:50 UTC) #27
fs
On 2015/01/16 19:47:50, c.shu wrote: > On 2015/01/13 16:03:05, fs wrote: > > On 2015/01/13 ...
5 years, 11 months ago (2015-01-19 11:49:53 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/797463003/80001
5 years, 11 months ago (2015-01-19 15:21:18 UTC) #30
commit-bot: I haz the power
Failed to apply patch for Source/core/page/SpatialNavigation.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
5 years, 11 months ago (2015-01-19 15:21:34 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/797463003/100001
5 years, 11 months ago (2015-01-19 16:12:33 UTC) #34
commit-bot: I haz the power
5 years, 11 months ago (2015-01-19 17:31:36 UTC) #35
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188642

Powered by Google App Engine
This is Rietveld 408576698