| Index: third_party/WebKit/Source/web/WebAXObject.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebAXObject.cpp b/third_party/WebKit/Source/web/WebAXObject.cpp
|
| index 3d73721c2c4f442c867eae224ef68234e45fc1b4..17147dd6ce0d30f5d36b8cacdca3f03a1335579b 100644
|
| --- a/third_party/WebKit/Source/web/WebAXObject.cpp
|
| +++ b/third_party/WebKit/Source/web/WebAXObject.cpp
|
| @@ -1162,10 +1162,57 @@ bool WebAXObject::lineBreaks(WebVector<int>& result) const
|
| return true;
|
| }
|
|
|
| +int WebAXObject::ariaColumnCount() const
|
| +{
|
| + if (isDetached())
|
| + return 0;
|
| +
|
| + if (!m_private->isAXTable())
|
| + return 0;
|
| +
|
| + return toAXTable(m_private.get())->ariaColumnCount();
|
| +}
|
| +
|
| +unsigned WebAXObject::ariaColumnIndex() const
|
| +{
|
| + if (isDetached())
|
| + return 0;
|
| +
|
| + if (!m_private->isTableCell())
|
| + return 0;
|
| +
|
| + return toAXTableCell(m_private.get())->ariaColumnIndex();
|
| +}
|
| +
|
| +int WebAXObject::ariaRowCount() const
|
| +{
|
| + if (isDetached())
|
| + return 0;
|
| +
|
| + if (!m_private->isAXTable())
|
| + return 0;
|
| +
|
| + return toAXTable(m_private.get())->ariaRowCount();
|
| +}
|
| +
|
| +unsigned WebAXObject::ariaRowIndex() const
|
| +{
|
| + if (isDetached())
|
| + return 0;
|
| +
|
| + if (m_private->isTableCell())
|
| + return toAXTableCell(m_private.get())->ariaRowIndex();
|
| +
|
| + if (m_private->isTableRow())
|
| + return toAXTableRow(m_private.get())->ariaRowIndex();
|
| +
|
| + return 0;
|
| +}
|
| +
|
| unsigned WebAXObject::columnCount() const
|
| {
|
| if (isDetached())
|
| - return false;
|
| + return 0;
|
|
|
| if (!m_private->isAXTable())
|
| return 0;
|
| @@ -1176,7 +1223,7 @@ unsigned WebAXObject::columnCount() const
|
| unsigned WebAXObject::rowCount() const
|
| {
|
| if (isDetached())
|
| - return false;
|
| + return 0;
|
|
|
| if (!m_private->isAXTable())
|
| return 0;
|
|
|