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

Issue 917613004: Add isTabStop attribute to Element (Closed)

Created:
5 years, 10 months ago by kochi
Modified:
5 years, 10 months ago
Reviewers:
haraken, hayato
CC:
vivekg, arv+blink, blink-reviews, blink-reviews-dom_chromium.org, Inactive, dglazkov+blink, eae+blinkwatch, rwlbuis, sof, vivekg_samsung
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add isTabStop attribute to Element Add isTabStop attribute which exposes the "tab focusable flag" defined in the HTML spec so that shadow hosts can control its own focusability. By default this is disabled under "experimental web platform features" flag. Design doc: https://docs.google.com/a/chromium.org/document/d/1k93Ez6yNSyWQDtGjdJJqTBPmljk9l2WS3JTe5OHHB50/edit BUG=380445 TEST=fast/dom/shadow/{focus-navigation-with-istabstop.html,focusable-elements-with-istabstop.html} Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190640

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : For vivekg_'s review #

Patch Set 4 : Add another layout test. #

Patch Set 5 : rebase #

Patch Set 6 : Add a layout test and fix missing isTabStop() case. #

Total comments: 11

Patch Set 7 : Fix for comments, use ElementRareData. #

Patch Set 8 : Add a layout test. #

Patch Set 9 : rebase #

Patch Set 10 : tentative: set status to stable #

Patch Set 11 : revert status to experimental #

Unified diffs Side-by-side diffs Delta from patch set Stats (+722 lines, -20 lines) Patch
A LayoutTests/fast/dom/shadow/focus-navigation-with-istabstop.html View 1 2 3 4 5 6 1 chunk +166 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/focus-navigation-with-istabstop-expected.txt View 1 2 3 1 chunk +96 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/focusable-elements-with-istabstop.html View 1 2 3 4 5 6 1 chunk +198 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/focusable-elements-with-istabstop-expected.txt View 1 2 3 4 5 1 chunk +83 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/istabstop-property.html View 1 2 3 4 5 6 7 1 chunk +80 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/istabstop-property-expected.txt View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/element-instance-property-listing-expected.txt View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/dom/Element.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/dom/Element.idl View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/ElementRareData.h View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 0 comments Download
M Source/core/page/FocusController.cpp View 1 2 3 4 5 2 chunks +47 lines, -20 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
kochi
PTAL
5 years, 10 months ago (2015-02-13 07:31:31 UTC) #2
vivekg
https://codereview.chromium.org/917613004/diff/1/Source/core/dom/Element.cpp File Source/core/dom/Element.cpp (right): https://codereview.chromium.org/917613004/diff/1/Source/core/dom/Element.cpp#newcode2259 Source/core/dom/Element.cpp:2259: return supportsFocus() ? m_isTabStop : false; nit: return supportsFocus() ...
5 years, 10 months ago (2015-02-13 10:28:36 UTC) #4
hayato
Could you add a test how isTabStop affects existing other built-in elements than div?
5 years, 10 months ago (2015-02-16 04:08:01 UTC) #6
kochi
On 2015/02/16 04:08:01, hayato wrote: > Could you add a test how isTabStop affects existing ...
5 years, 10 months ago (2015-02-18 07:57:49 UTC) #7
kochi
https://codereview.chromium.org/917613004/diff/1/Source/core/dom/Element.cpp File Source/core/dom/Element.cpp (right): https://codereview.chromium.org/917613004/diff/1/Source/core/dom/Element.cpp#newcode2259 Source/core/dom/Element.cpp:2259: return supportsFocus() ? m_isTabStop : false; On 2015/02/13 10:28:36, ...
5 years, 10 months ago (2015-02-19 06:10:47 UTC) #8
hayato
We, hayato@ and kochi@, are still discussing offline about this change.
5 years, 10 months ago (2015-02-19 08:54:54 UTC) #9
hayato
https://codereview.chromium.org/917613004/diff/100001/LayoutTests/fast/dom/shadow/focusable-elements-with-istabstop.html File LayoutTests/fast/dom/shadow/focusable-elements-with-istabstop.html (right): https://codereview.chromium.org/917613004/diff/100001/LayoutTests/fast/dom/shadow/focusable-elements-with-istabstop.html#newcode55 LayoutTests/fast/dom/shadow/focusable-elements-with-istabstop.html:55: var expected_nav = [ Nit: We should avoid using ...
5 years, 10 months ago (2015-02-20 08:46:31 UTC) #10
kochi
https://codereview.chromium.org/917613004/diff/100001/LayoutTests/fast/dom/shadow/focusable-elements-with-istabstop.html File LayoutTests/fast/dom/shadow/focusable-elements-with-istabstop.html (right): https://codereview.chromium.org/917613004/diff/100001/LayoutTests/fast/dom/shadow/focusable-elements-with-istabstop.html#newcode55 LayoutTests/fast/dom/shadow/focusable-elements-with-istabstop.html:55: var expected_nav = [ On 2015/02/20 08:46:30, hayato wrote: ...
5 years, 10 months ago (2015-02-20 09:43:05 UTC) #11
hayato
https://codereview.chromium.org/917613004/diff/100001/Source/core/dom/Element.cpp File Source/core/dom/Element.cpp (right): https://codereview.chromium.org/917613004/diff/100001/Source/core/dom/Element.cpp#newcode221 Source/core/dom/Element.cpp:221: // isTabStop is overridden by setting tabindex. On 2015/02/20 ...
5 years, 10 months ago (2015-02-20 10:28:45 UTC) #12
kochi
On 2015/02/20 10:28:45, hayato wrote: > https://codereview.chromium.org/917613004/diff/100001/Source/core/dom/Element.cpp > File Source/core/dom/Element.cpp (right): > > https://codereview.chromium.org/917613004/diff/100001/Source/core/dom/Element.cpp#newcode221 > ...
5 years, 10 months ago (2015-02-20 10:57:33 UTC) #13
hayato
I'm not convinced, but this feature is under the flag, so it's okay to land ...
5 years, 10 months ago (2015-02-23 05:57:12 UTC) #14
kochi
On 2015/02/23 05:57:12, hayato wrote: > I'm not convinced, but this feature is under the ...
5 years, 10 months ago (2015-02-23 06:10:49 UTC) #15
hayato
lgtm
5 years, 10 months ago (2015-02-23 06:53:45 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/917613004/200001
5 years, 10 months ago (2015-02-23 07:05:15 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/27315)
5 years, 10 months ago (2015-02-23 07:21:10 UTC) #20
kochi
+haraken for Source/platform/RuntimeEnabledFeatures.in
5 years, 10 months ago (2015-02-23 07:29:00 UTC) #22
haraken
On 2015/02/23 07:29:00, Takayoshi Kochi wrote: > +haraken for Source/platform/RuntimeEnabledFeatures.in platform/ LGTM
5 years, 10 months ago (2015-02-23 07:44:29 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/917613004/200001
5 years, 10 months ago (2015-02-23 07:46:54 UTC) #25
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://src.chromium.org/viewvc/blink?view=rev&revision=190640
5 years, 10 months ago (2015-02-23 07:50:05 UTC) #26
tkent
Is this defined by any public standard?
5 years, 10 months ago (2015-02-23 07:55:01 UTC) #27
kochi
5 years, 10 months ago (2015-02-23 08:01:09 UTC) #28
Message was sent while issue was closed.
On 2015/02/23 07:55:01, tkent wrote:
> Is this defined by any public standard?

Not yet, and we intend to merge it to Shadow DOM spec first.

Powered by Google App Engine
This is Rietveld 408576698