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

Unified Diff: Source/modules/accessibility/AXTableCell.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: Second attempt to land this patch 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/AXTableCell.cpp
diff --git a/Source/modules/accessibility/AXTableCell.cpp b/Source/modules/accessibility/AXTableCell.cpp
index 948dde3fba5dc3e782a00ff61a463a90909f9e05..790164c0aca2b9b5e6f6d5c15779ab5d4f333dbb 100644
--- a/Source/modules/accessibility/AXTableCell.cpp
+++ b/Source/modules/accessibility/AXTableCell.cpp
@@ -196,8 +196,8 @@ void AXTableCell::columnIndexRange(pair<unsigned, unsigned>& columnRange)
return;
LayoutTableCell* cell = toLayoutTableCell(m_renderer);
- columnRange.first = cell->col();
- columnRange.second = cell->colSpan();
+ columnRange.first = cell->table()->colToEffCol(cell->col());
+ columnRange.second = cell->table()->colToEffCol(cell->col() + cell->colSpan()) - columnRange.first;
}
SortDirection AXTableCell::sortDirection() const
« no previous file with comments | « LayoutTests/accessibility/table-cells-with-colspan-expected.txt ('k') | Source/modules/accessibility/AXTableColumn.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698