Commit 1163badf authored by Aaron Leventhal's avatar Aaron Leventhal Committed by Commit Bot

Return correct role for table sections

Fixes a copy and paste error that wasn't caught before.

Bug: 1011067

Change-Id: Iaf7441a1820d7460eab19451b77d14d013e24c2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2081522
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746223}
parent 5c96e184
rootWebArea rootWebArea
++genericContainer ignored ++genericContainer ignored
++++layoutTable ++++layoutTable
++++++genericContainer ignored ++++++layoutTableRow
++++++++layoutTableRow ++++++++layoutTableCell name='cat'
++++++++++layoutTableCell name='cat' ++++++++++staticText name='cat'
++++++++++++staticText name='cat' ++++++++++++inlineTextBox name='cat'
++++++++++++++inlineTextBox name='cat'
...@@ -657,7 +657,7 @@ ax::mojom::Role AXNodeObject::NativeRoleIgnoringAria() const { ...@@ -657,7 +657,7 @@ ax::mojom::Role AXNodeObject::NativeRoleIgnoringAria() const {
if (IsA<HTMLTableCellElement>(*GetNode())) if (IsA<HTMLTableCellElement>(*GetNode()))
return DetermineTableCellRole(); return DetermineTableCellRole();
if (IsA<HTMLTableSectionElement>(*GetNode())) if (IsA<HTMLTableSectionElement>(*GetNode()))
return DetermineTableCellRole(); return DetermineTableSectionRole();
if (const auto* input = DynamicTo<HTMLInputElement>(*GetNode())) { if (const auto* input = DynamicTo<HTMLInputElement>(*GetNode())) {
const AtomicString& type = input->type(); const AtomicString& type = input->type();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment