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

Unified Diff: Source/core/accessibility/AccessibilityTableRow.cpp

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 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/core/accessibility/AccessibilityTableHeaderContainer.cpp ('k') | Source/core/css/CSSBasicShapes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/accessibility/AccessibilityTableHeaderContainer.cpp ('k') | Source/core/css/CSSBasicShapes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698