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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp

Issue 2884573002: Replace LayoutTableCell::AbsoluteColumnIndex() with EffectiveColumnIndex()
Patch Set: - Created 3 years, 7 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: third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp b/third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp
index 8d701aebe1681b01122f9aeb8dbbd1ada6de9453..bfb109479753d53b991f81fa6c4db5c6737bc77b 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp
@@ -212,11 +212,9 @@ void AXTableCell::ColumnIndexRange(
return;
LayoutTableCell* cell = ToLayoutTableCell(layout_object_);
- column_range.first = cell->Table()->AbsoluteColumnToEffectiveColumn(
- cell->AbsoluteColumnIndex());
- column_range.second = cell->Table()->AbsoluteColumnToEffectiveColumn(
- cell->AbsoluteColumnIndex() + cell->ColSpan()) -
- column_range.first;
+ column_range.first = cell->EffectiveColumnIndex();
+ column_range.second =
+ cell->EffectiveColumnIndexOfCellAfter() - column_range.first;
}
SortDirection AXTableCell::GetSortDirection() const {

Powered by Google App Engine
This is Rietveld 408576698