LCOV - code coverage report
Current view: top level - accessible/generic - ARIAGridAccessible-inl.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 11 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef mozilla_a11y_ARIAGridAccessible_inl_h__
       8             : #define mozilla_a11y_ARIAGridAccessible_inl_h__
       9             : 
      10             : #include "ARIAGridAccessible.h"
      11             : 
      12             : #include "AccIterator.h"
      13             : #include "nsAccUtils.h"
      14             : 
      15             : namespace mozilla {
      16             : namespace a11y {
      17             : 
      18             : inline int32_t
      19           0 : ARIAGridCellAccessible::RowIndexFor(Accessible* aRow) const
      20             : {
      21           0 :   Accessible* table = nsAccUtils::TableFor(aRow);
      22           0 :   if (table) {
      23           0 :     int32_t rowIdx = 0;
      24           0 :     Accessible* row = nullptr;
      25           0 :     AccIterator rowIter(table, filters::GetRow);
      26           0 :     while ((row = rowIter.Next()) && row != aRow)
      27           0 :       rowIdx++;
      28             : 
      29           0 :     if (row)
      30           0 :       return rowIdx;
      31             :   }
      32             : 
      33           0 :   return -1;
      34             : }
      35             : 
      36             : } // namespace a11y
      37             : } // namespace mozilla
      38             : 
      39             : #endif

Generated by: LCOV version 1.13