|
|
Chromium Code Reviews
DescriptionDo not use Node in FocusController, 3rd
This is one of the series of patches. See the bug for the motivation.
- 1st CL: https://codereview.chromium.org/1704333002/
- 2nd CL: https://codereview.chromium.org/1711673002/
BUG=587743
Committed: https://crrev.com/fbc4ecfc0d9e7b70f3a0c4fd79d837ff87fc6faf
Cr-Commit-Position: refs/heads/master@{#376680}
Patch Set 1 #Patch Set 2 : fix typo #
Total comments: 7
Patch Set 3 : addressed #Patch Set 4 : use ElementTraversal::lastWithin #
Total comments: 2
Patch Set 5 : update #Messages
Total messages: 44 (21 generated)
The CQ bit was checked by hayato@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1707373002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1707373002/1
The CQ bit was checked by hayato@chromium.org to run a CQ dry run
fix typo
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1707373002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1707373002/20001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Do not use Node in FocusController, 3rd BUG=587743 ========== to ========== Do not use Node in FocusController, 3rd See https://codereview.chromium.org/1704333002/ for details. BUG=587743 ==========
Description was changed from ========== Do not use Node in FocusController, 3rd See https://codereview.chromium.org/1704333002/ for details. BUG=587743 ========== to ========== Do not use Node in FocusController, 3rd See https://codereview.chromium.org/1704333002/ for details. - 1st: https://codereview.chromium.org/1711673002/ - 2nd: https://codereview.chromium.org/1711673002/ BUG=587743 ==========
hayato@chromium.org changed reviewers: + yuzus@chromium.org
PTAL
hayato@chromium.org changed reviewers: + kochi@chromium.org
Description was changed from ========== Do not use Node in FocusController, 3rd See https://codereview.chromium.org/1704333002/ for details. - 1st: https://codereview.chromium.org/1711673002/ - 2nd: https://codereview.chromium.org/1711673002/ BUG=587743 ========== to ========== Do not use Node in FocusController, 3rd This is one of the series of patches. See the bug for the motivation. - 1st CL: https://codereview.chromium.org/1711673002/ - 2nd CL: https://codereview.chromium.org/1711673002/ BUG=587743 ==========
Description was changed from ========== Do not use Node in FocusController, 3rd This is one of the series of patches. See the bug for the motivation. - 1st CL: https://codereview.chromium.org/1711673002/ - 2nd CL: https://codereview.chromium.org/1711673002/ BUG=587743 ========== to ========== Do not use Node in FocusController, 3rd This is one of the series of patches. See the bug for the motivation. - 1st CL: https://codereview.chromium.org/1704333002/ - 2nd CL: https://codereview.chromium.org/1711673002/ BUG=587743 ==========
is this the last one? https://codereview.chromium.org/1707373002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/1707373002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:103: Node& root = m_rootTreeScope->rootNode(); nit: |ContainerNode&| ? https://codereview.chromium.org/1707373002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:110: return last->isElementNode() ? toElement(last) : ElementTraversal::previous(*last); Can |ElementTraversal::lastWithin(rootNode())| return the same for these 2 lines? https://codereview.chromium.org/1707373002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:116: Node& root = rootNode(); nit: |ContainerNode&| ?
The CQ bit was checked by hayato@chromium.org to run a CQ dry run
addressed
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1707373002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1707373002/40001
https://codereview.chromium.org/1707373002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/1707373002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:103: Node& root = m_rootTreeScope->rootNode(); On 2016/02/19 07:25:35, kochi wrote: > nit: |ContainerNode&| ? Done. https://codereview.chromium.org/1707373002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:110: return last->isElementNode() ? toElement(last) : ElementTraversal::previous(*last); On 2016/02/19 07:25:35, kochi wrote: > Can |ElementTraversal::lastWithin(rootNode())| return the same for these 2 > lines? It can not. A node can have the non-element last child, which may have an element child https://codereview.chromium.org/1707373002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:116: Node& root = rootNode(); On 2016/02/19 07:25:35, kochi wrote: > nit: |ContainerNode&| ? Done.
On 2016/02/19 07:25:35, kochi wrote: > is this the last one? I do not have a pending CL. I can the same thing for spacial navigation, but it won not happen soon.
The CQ bit was checked by hayato@chromium.org to run a CQ dry run
use ElementTraversal::lastWithin
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1707373002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1707373002/60001
https://codereview.chromium.org/1707373002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/1707373002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:110: return last->isElementNode() ? toElement(last) : ElementTraversal::previous(*last); On 2016/02/19 07:47:44, hayato wrote: > On 2016/02/19 07:25:35, kochi wrote: > > Can |ElementTraversal::lastWithin(rootNode())| return the same for these 2 > > lines? > > It can not. A node can have the non-element last child, which may have an > element child > I'm wrong. Looks ElementTraversal::lastWithin does the same thing as I did. Done.
lgtm (added note: we discussed offline about difference between NodeTraversal::lastWithin() and ElementTraversal::lastWithin(), and agreed that ElementTraversal version does the expected thing.) https://codereview.chromium.org/1707373002/diff/60001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/1707373002/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:103: ContainerNode& root = m_rootTreeScope->rootNode(); nit: |m_rootTreeScope->| can be omitted.
The CQ bit was checked by hayato@chromium.org to run a CQ dry run
update
https://codereview.chromium.org/1707373002/diff/60001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/1707373002/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:103: ContainerNode& root = m_rootTreeScope->rootNode(); On 2016/02/19 08:21:39, kochi wrote: > nit: |m_rootTreeScope->| can be omitted. Done.
The CQ bit was unchecked by hayato@chromium.org
The CQ bit was checked by hayato@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from kochi@chromium.org Link to the patchset: https://codereview.chromium.org/1707373002/#ps80001 (title: "update")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1707373002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1707373002/80001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by hayato@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1707373002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1707373002/80001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by hayato@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1707373002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1707373002/80001
Message was sent while issue was closed.
Description was changed from ========== Do not use Node in FocusController, 3rd This is one of the series of patches. See the bug for the motivation. - 1st CL: https://codereview.chromium.org/1704333002/ - 2nd CL: https://codereview.chromium.org/1711673002/ BUG=587743 ========== to ========== Do not use Node in FocusController, 3rd This is one of the series of patches. See the bug for the motivation. - 1st CL: https://codereview.chromium.org/1704333002/ - 2nd CL: https://codereview.chromium.org/1711673002/ BUG=587743 ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== Do not use Node in FocusController, 3rd This is one of the series of patches. See the bug for the motivation. - 1st CL: https://codereview.chromium.org/1704333002/ - 2nd CL: https://codereview.chromium.org/1711673002/ BUG=587743 ========== to ========== Do not use Node in FocusController, 3rd This is one of the series of patches. See the bug for the motivation. - 1st CL: https://codereview.chromium.org/1704333002/ - 2nd CL: https://codereview.chromium.org/1711673002/ BUG=587743 Committed: https://crrev.com/fbc4ecfc0d9e7b70f3a0c4fd79d837ff87fc6faf Cr-Commit-Position: refs/heads/master@{#376680} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/fbc4ecfc0d9e7b70f3a0c4fd79d837ff87fc6faf Cr-Commit-Position: refs/heads/master@{#376680} |
