Index: Source/core/accessibility/AccessibilityTableRow.cpp |
diff --git a/Source/core/accessibility/AccessibilityTableRow.cpp b/Source/core/accessibility/AccessibilityTableRow.cpp |
index 01dd69f933c2392112085577ea8c0e572070115e..89da3f7963f726d03f0c926b7ff3d53a02b5d58f 100644 |
--- a/Source/core/accessibility/AccessibilityTableRow.cpp |
+++ b/Source/core/accessibility/AccessibilityTableRow.cpp |
@@ -35,9 +35,9 @@ |
using namespace std; |
namespace WebCore { |
- |
+ |
using namespace HTMLNames; |
- |
+ |
AccessibilityTableRow::AccessibilityTableRow(RenderObject* renderer) |
: AccessibilityRenderObject(renderer) |
{ |
@@ -71,62 +71,62 @@ bool AccessibilityTableRow::isTableRow() const |
AccessibilityObject* table = parentTable(); |
if (!table || !table->isAccessibilityTable()) |
return false; |
- |
+ |
return true; |
} |
- |
+ |
AccessibilityObject* AccessibilityTableRow::observableObject() const |
{ |
// This allows the table to be the one who sends notifications about tables. |
return parentTable(); |
} |
- |
+ |
bool AccessibilityTableRow::computeAccessibilityIsIgnored() const |
-{ |
+{ |
AccessibilityObjectInclusion decision = defaultObjectInclusion(); |
if (decision == IncludeObject) |
return false; |
if (decision == IgnoreObject) |
return true; |
- |
+ |
if (!isTableRow()) |
return AccessibilityRenderObject::computeAccessibilityIsIgnored(); |
return false; |
} |
- |
+ |
AccessibilityObject* AccessibilityTableRow::parentTable() const |
{ |
AccessibilityObject* parent = parentObjectUnignored(); |
if (!parent || !parent->isAccessibilityTable()) |
return 0; |
- |
+ |
return parent; |
} |
- |
+ |
AccessibilityObject* AccessibilityTableRow::headerObject() |
{ |
if (!m_renderer || !m_renderer->isTableRow()) |
return 0; |
- |
+ |
AccessibilityChildrenVector rowChildren = children(); |
if (!rowChildren.size()) |
return 0; |
- |
+ |
// check the first element in the row to see if it is a TH element |
AccessibilityObject* cell = rowChildren[0].get(); |
if (!cell->isTableCell()) |
return 0; |
- |
+ |
RenderObject* cellRenderer = static_cast<AccessibilityTableCell*>(cell)->renderer(); |
if (!cellRenderer) |
return 0; |
- |
+ |
Node* cellNode = cellRenderer->node(); |
if (!cellNode || !cellNode->hasTagName(thTag)) |
return 0; |
- |
+ |
return cell; |
} |
- |
+ |
} // namespace WebCore |