diff options
author | Ben Murdoch <benm@google.com> | 2010-08-11 14:44:44 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-08-12 19:15:41 +0100 |
commit | dd8bb3de4f353a81954234999f1fea748aee2ea9 (patch) | |
tree | 729b52bf09294f0d6c67cd5ea80aee1b727b7bd8 /WebCore/accessibility/AccessibilityTable.cpp | |
parent | f3d41ba51d86bf719c7a65ab5297aea3c17e2d98 (diff) | |
download | external_webkit-dd8bb3de4f353a81954234999f1fea748aee2ea9.zip external_webkit-dd8bb3de4f353a81954234999f1fea748aee2ea9.tar.gz external_webkit-dd8bb3de4f353a81954234999f1fea748aee2ea9.tar.bz2 |
Merge WebKit at r65072 : Initial merge by git.
Change-Id: Ibcf418498376b2660aacb7f8d46ea7085ef91585
Diffstat (limited to 'WebCore/accessibility/AccessibilityTable.cpp')
-rw-r--r-- | WebCore/accessibility/AccessibilityTable.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/WebCore/accessibility/AccessibilityTable.cpp b/WebCore/accessibility/AccessibilityTable.cpp index 04ecac3..7f7b6f2 100644 --- a/WebCore/accessibility/AccessibilityTable.cpp +++ b/WebCore/accessibility/AccessibilityTable.cpp @@ -43,8 +43,6 @@ #include "RenderTableCell.h" #include "RenderTableSection.h" -using namespace std; - namespace WebCore { using namespace HTMLNames; @@ -75,7 +73,7 @@ bool AccessibilityTable::isTableExposableThroughAccessibility() // <table> should be exposed as an AXTable. The goal // is to only show "data" tables - if (!m_renderer || !m_renderer->isTable()) + if (!renderer()) return false; // if the developer assigned an aria role to this, then we shouldn't @@ -196,7 +194,7 @@ bool AccessibilityTable::isTableExposableThroughAccessibility() // For the first 5 rows, cache the background color so we can check if this table has zebra-striped rows. if (row < 5 && row == alternatingRowColorCount) { RenderObject* renderRow = cell->parent(); - if (!renderRow || !renderRow->isTableRow()) + if (!renderRow || !renderRow->isBoxModelObject() || !toRenderBoxModelObject(renderRow)->isTableRow()) continue; RenderStyle* rowRenderStyle = renderRow->style(); if (!rowRenderStyle) |