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

Issue 1704333002: Do not use Node in FocusController (Closed)

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

Description

Do not use Node in FocusController Since a focus navigation operates on only elements, FocusController should use Element, instead of Node, as much as possible, so it becomes more type safe and avoid an unnecessary `toElement` type cast. ShadowRoot is one of the exceptions so far. This CL can avoid passing a ShadowRoot by introducing findFocusableElementInShadowHost(). FocusController::findFocusableElement() no longer needs to be a public member function, making it private. This is the first wave to replace Node with Element in FocusController. I'll replace other parts in another CL. BUG=587743 Committed: https://crrev.com/818f579b3cd4f05e55b55d88ac899694d945d574 Cr-Commit-Position: refs/heads/master@{#376379}

Patch Set 1 #

Patch Set 2 : updated #

Patch Set 3 : split a CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -10 lines) Patch
M third_party/WebKit/Source/core/dom/Element.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/page/FocusController.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/FocusController.cpp View 1 2 1 chunk +8 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1704333002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1704333002/1
4 years, 10 months ago (2016-02-18 08:08:25 UTC) #2
hayato
PTAL
4 years, 10 months ago (2016-02-18 08:09:02 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-18 09:20:36 UTC) #7
hayato
updated
4 years, 10 months ago (2016-02-18 11:41:23 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1704333002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1704333002/20001
4 years, 10 months ago (2016-02-18 11:41:31 UTC) #10
hayato
split a CL
4 years, 10 months ago (2016-02-18 12:05:10 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1704333002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1704333002/40001
4 years, 10 months ago (2016-02-18 12:05:51 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-18 13:41:16 UTC) #22
kochi
lgtm
4 years, 10 months ago (2016-02-19 03:55:53 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1704333002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1704333002/40001
4 years, 10 months ago (2016-02-19 04:30:43 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-19 04:42:09 UTC) #27
commit-bot: I haz the power
4 years, 10 months ago (2016-02-19 04:43:08 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/818f579b3cd4f05e55b55d88ac899694d945d574
Cr-Commit-Position: refs/heads/master@{#376379}

Powered by Google App Engine
This is Rietveld 408576698