|
|
Chromium Code Reviews
DescriptionDo not use Node in FocusController, 2nd
This is one of the series of patches. See the bug for the motivation.
- 1st CL is here: https://codereview.chromium.org/1704333002/
BUG=587743
Committed: https://crrev.com/513d58f7d6622a3c8897d911f3a67f6c57f23fc6
Cr-Commit-Position: refs/heads/master@{#376414}
Patch Set 1 #Patch Set 2 : rebased #
Total comments: 2
Patch Set 3 : fix #
Total comments: 2
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 30 (12 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/1711673002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1711673002/1
The CQ bit was checked by hayato@chromium.org to run a CQ dry run
rebased
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1711673002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1711673002/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, 2nd BUG=587743 ========== to ========== Do not use Node in FocusController, 2nd See https://codereview.chromium.org/1704333002/ for details. BUG=587743 ==========
hayato@chromium.org changed reviewers: + kochi@chromium.org, yuzus@chromium.org
PTAL
Could you write even one-line description of what this CL does? (referring to the other CL is okay, of course) https://codereview.chromium.org/1711673002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/1711673002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:537: return (type == WebFocusTypeForward) ? ElementTraversal::next(*node) : ElementTraversal::previous(*node); I think if the |node| is an Element, you should return |toElement(node)|, instead of traversing.
The CQ bit was checked by hayato@chromium.org to run a CQ dry run
fix
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1711673002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1711673002/40001
Thank you for the review. FYI. The 3rd is ready to be reviewed: https://codereview.chromium.org/1707373002/ Could you review this too? https://codereview.chromium.org/1711673002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/1711673002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:537: return (type == WebFocusTypeForward) ? ElementTraversal::next(*node) : ElementTraversal::previous(*node); On 2016/02/19 06:11:33, kochi wrote: > I think if the |node| is an Element, you should return |toElement(node)|, > instead of traversing. Done.
hmm, the subject (the first line in the description) says the summary and all other details are described in the referred CL? I thought you didn't mention anchorNode() in the referred CL's description, so the same description doesn't apply to this CL. That's why I suggested adding even a one-line summary.
Description was changed from ========== Do not use Node in FocusController, 2nd See https://codereview.chromium.org/1704333002/ for details. BUG=587743 ========== to ========== Do not use Node in FocusController, 2nd This is one of the series of patches. See the bug for the motivation. - 1st CL is here: https://codereview.chromium.org/1704333002/ BUG=587743 ==========
I've updated the description. I think the referring to the bug is good enough in this CL.
On 2016/02/19 06:56:39, hayato wrote: > I've updated the description. I think the referring to the bug is good enough in > this CL. Thanks, lgtm.
The CQ bit was unchecked by hayato@chromium.org
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/1711673002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1711673002/40001
Message was sent while issue was closed.
Description was changed from ========== Do not use Node in FocusController, 2nd This is one of the series of patches. See the bug for the motivation. - 1st CL is here: https://codereview.chromium.org/1704333002/ BUG=587743 ========== to ========== Do not use Node in FocusController, 2nd This is one of the series of patches. See the bug for the motivation. - 1st CL is here: https://codereview.chromium.org/1704333002/ BUG=587743 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Do not use Node in FocusController, 2nd This is one of the series of patches. See the bug for the motivation. - 1st CL is here: https://codereview.chromium.org/1704333002/ BUG=587743 ========== to ========== Do not use Node in FocusController, 2nd This is one of the series of patches. See the bug for the motivation. - 1st CL is here: https://codereview.chromium.org/1704333002/ BUG=587743 Committed: https://crrev.com/513d58f7d6622a3c8897d911f3a67f6c57f23fc6 Cr-Commit-Position: refs/heads/master@{#376414} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/513d58f7d6622a3c8897d911f3a67f6c57f23fc6 Cr-Commit-Position: refs/heads/master@{#376414}
Message was sent while issue was closed.
tkent@chromium.org changed reviewers: + tkent@chromium.org
Message was sent while issue was closed.
https://codereview.chromium.org/1711673002/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/1711673002/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:539: return (type == WebFocusTypeForward) ? ElementTraversal::next(*node) : ElementTraversal::previous(*node); If ElementTraversal::next(*node) is focusable, the element is not focused by TAB key, right? It's a behavior change.
Message was sent while issue was closed.
On 2016/02/22 06:07:08, tkent wrote: > https://codereview.chromium.org/1711673002/diff/40001/third_party/WebKit/Sour... > File third_party/WebKit/Source/core/page/FocusController.cpp (right): > > https://codereview.chromium.org/1711673002/diff/40001/third_party/WebKit/Sour... > third_party/WebKit/Source/core/page/FocusController.cpp:539: return (type == > WebFocusTypeForward) ? ElementTraversal::next(*node) : > ElementTraversal::previous(*node); > If ElementTraversal::next(*node) is focusable, the element is not focused by TAB > key, right? > It's a behavior change. Thank you. Let me take a look.
Message was sent while issue was closed.
https://codereview.chromium.org/1711673002/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/1711673002/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/page/FocusController.cpp:740: ASSERT(document->documentElement()); I guess this assertion is not always true and this is the cause of the crash. See https://bugs.chromium.org/p/chromium/issues/detail?id=594841 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
