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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 9 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
« no previous file with comments | « Source/modules/accessibility/AXSlider.cpp ('k') | Source/platform/LengthBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXTable.cpp
diff --git a/Source/modules/accessibility/AXTable.cpp b/Source/modules/accessibility/AXTable.cpp
index 4ccfef5650781ef9caf4fa2bbf1be03cb4d71b53..2ae4049aa57f2d86ad92c6f33cc52bf212d33c07 100644
--- a/Source/modules/accessibility/AXTable.cpp
+++ b/Source/modules/accessibility/AXTable.cpp
@@ -182,7 +182,7 @@ bool AXTable::isDataTable() const
return true;
// Store the background color of the table to check against cell's background colors.
- const LayoutStyle* tableStyle = table->style();
+ const ComputedStyle* tableStyle = table->style();
if (!tableStyle)
return false;
Color tableBGColor = tableStyle->visitedDependentColor(CSSPropertyBackgroundColor);
@@ -237,12 +237,12 @@ bool AXTable::isDataTable() const
return true;
}
- const LayoutStyle* layoutStyle = cell->style();
- if (!layoutStyle)
+ const ComputedStyle* computedStyle = cell->style();
+ if (!computedStyle)
continue;
// If the empty-cells style is set, we'll call it a data table.
- if (layoutStyle->emptyCells() == HIDE)
+ if (computedStyle->emptyCells() == HIDE)
return true;
// If a cell has matching bordered sides, call it a (fully) bordered cell.
@@ -263,7 +263,7 @@ bool AXTable::isDataTable() const
// If the cell has a different color from the table and there is cell spacing,
// then it is probably a data table cell (spacing and colors take the place of borders).
- Color cellColor = layoutStyle->visitedDependentColor(CSSPropertyBackgroundColor);
+ Color cellColor = computedStyle->visitedDependentColor(CSSPropertyBackgroundColor);
if (table->hBorderSpacing() > 0 && table->vBorderSpacing() > 0
&& tableBGColor != cellColor && cellColor.alpha() != 1)
backgroundDifferenceCellCount++;
@@ -277,10 +277,10 @@ bool AXTable::isDataTable() const
LayoutObject* layoutRow = cell->parent();
if (!layoutRow || !layoutRow->isBoxModelObject() || !toLayoutBoxModelObject(layoutRow)->isTableRow())
continue;
- const LayoutStyle* rowLayoutStyle = layoutRow->style();
- if (!rowLayoutStyle)
+ const ComputedStyle* rowComputedStyle = layoutRow->style();
+ if (!rowComputedStyle)
continue;
- Color rowColor = rowLayoutStyle->visitedDependentColor(CSSPropertyBackgroundColor);
+ Color rowColor = rowComputedStyle->visitedDependentColor(CSSPropertyBackgroundColor);
alternatingRowColors[alternatingRowColorCount] = rowColor;
alternatingRowColorCount++;
}
« no previous file with comments | « Source/modules/accessibility/AXSlider.cpp ('k') | Source/platform/LengthBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698