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

Unified Diff: Source/modules/accessibility/AXTableColumn.cpp

Issue 914233002: Use effective columns when cells with colspan are present. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Just updating expectation result Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/accessibility/AXTableColumn.cpp
diff --git a/Source/modules/accessibility/AXTableColumn.cpp b/Source/modules/accessibility/AXTableColumn.cpp
index 556b19919c7dc4cba15e26d1a08e76979f028084..8a228e589d2a1e254f94a356310d0372d096b61c 100644
--- a/Source/modules/accessibility/AXTableColumn.cpp
+++ b/Source/modules/accessibility/AXTableColumn.cpp
@@ -101,9 +101,9 @@ void AXTableColumn::headerObjectsForColumn(AccessibilityChildrenVector& headers)
if (!layoutCell)
continue;
- // Whenever cell's col is less then current column index, we've found the cell with colspan.
+ // Whenever cell's effective col is less then current column index, we've found the cell with colspan.
// We do not need to add this cell, it's already been added.
- if (layoutCell->col() < m_columnIndex)
+ if (layoutCell->table()->colToEffCol(layoutCell->col()) < m_columnIndex)
continue;
AXObject* cell = axObjectCache()->getOrCreate(layoutCell->node());
« Source/modules/accessibility/AXTableCell.cpp ('K') | « Source/modules/accessibility/AXTableCell.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698