summaryrefslogtreecommitdiff
path: root/Source/WebCore/accessibility/AccessibilityARIAGridCell.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/accessibility/AccessibilityARIAGridCell.h')
-rw-r--r--Source/WebCore/accessibility/AccessibilityARIAGridCell.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/Source/WebCore/accessibility/AccessibilityARIAGridCell.h b/Source/WebCore/accessibility/AccessibilityARIAGridCell.h
index 1df3e3f02..ef226007a 100644
--- a/Source/WebCore/accessibility/AccessibilityARIAGridCell.h
+++ b/Source/WebCore/accessibility/AccessibilityARIAGridCell.h
@@ -10,7 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
+ * 3. Neither the name of Apple Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@ -26,30 +26,28 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityARIAGridCell_h
-#define AccessibilityARIAGridCell_h
+#pragma once
#include "AccessibilityTableCell.h"
namespace WebCore {
-class AccessibilityARIAGridCell : public AccessibilityTableCell {
-
-private:
- explicit AccessibilityARIAGridCell(RenderObject*);
+class AccessibilityARIAGridCell final : public AccessibilityTableCell {
public:
- static PassRefPtr<AccessibilityARIAGridCell> create(RenderObject*);
+ static Ref<AccessibilityARIAGridCell> create(RenderObject*);
virtual ~AccessibilityARIAGridCell();
// fills in the start location and row span of cell
- virtual void rowIndexRange(std::pair<unsigned, unsigned>& rowRange) override;
+ void rowIndexRange(std::pair<unsigned, unsigned>& rowRange) const override;
// fills in the start location and column span of cell
- virtual void columnIndexRange(std::pair<unsigned, unsigned>& columnRange) override;
+ void columnIndexRange(std::pair<unsigned, unsigned>& columnRange) const override;
-protected:
- virtual AccessibilityTable* parentTable() const override;
+private:
+ explicit AccessibilityARIAGridCell(RenderObject*);
+
+ AccessibilityTable* parentTable() const override;
+ AccessibilityObject* parentRowGroup() const;
+ unsigned ariaRowSpanWithRowIndex(unsigned index) const;
};
} // namespace WebCore
-
-#endif // AccessibilityARIAGridCell_h