| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #include "modules/accessibility/AXARIAGridCell.h" | 30 #include "modules/accessibility/AXARIAGridCell.h" |
| 31 | 31 |
| 32 #include "modules/accessibility/AXObjectCacheImpl.h" | 32 #include "modules/accessibility/AXObjectCacheImpl.h" |
| 33 #include "modules/accessibility/AXTable.h" | 33 #include "modules/accessibility/AXTable.h" |
| 34 #include "modules/accessibility/AXTableRow.h" | 34 #include "modules/accessibility/AXTableRow.h" |
| 35 | 35 |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 AXARIAGridCell::AXARIAGridCell(RenderObject* renderer, AXObjectCacheImpl* axObje
ctCache) | 39 AXARIAGridCell::AXARIAGridCell(LayoutObject* renderer, AXObjectCacheImpl* axObje
ctCache) |
| 40 : AXTableCell(renderer, axObjectCache) | 40 : AXTableCell(renderer, axObjectCache) |
| 41 { | 41 { |
| 42 } | 42 } |
| 43 | 43 |
| 44 AXARIAGridCell::~AXARIAGridCell() | 44 AXARIAGridCell::~AXARIAGridCell() |
| 45 { | 45 { |
| 46 } | 46 } |
| 47 | 47 |
| 48 PassRefPtr<AXARIAGridCell> AXARIAGridCell::create(RenderObject* renderer, AXObje
ctCacheImpl* axObjectCache) | 48 PassRefPtr<AXARIAGridCell> AXARIAGridCell::create(LayoutObject* renderer, AXObje
ctCacheImpl* axObjectCache) |
| 49 { | 49 { |
| 50 return adoptRef(new AXARIAGridCell(renderer, axObjectCache)); | 50 return adoptRef(new AXARIAGridCell(renderer, axObjectCache)); |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool AXARIAGridCell::isAriaColumnHeader() const | 53 bool AXARIAGridCell::isAriaColumnHeader() const |
| 54 { | 54 { |
| 55 const AtomicString& role = getAttribute(HTMLNames::roleAttr); | 55 const AtomicString& role = getAttribute(HTMLNames::roleAttr); |
| 56 return equalIgnoringCase(role, "columnheader"); | 56 return equalIgnoringCase(role, "columnheader"); |
| 57 } | 57 } |
| 58 | 58 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 if (isAriaRowHeader()) | 138 if (isAriaRowHeader()) |
| 139 return RowHeaderRole; | 139 return RowHeaderRole; |
| 140 | 140 |
| 141 if (isAriaColumnHeader()) | 141 if (isAriaColumnHeader()) |
| 142 return ColumnHeaderRole; | 142 return ColumnHeaderRole; |
| 143 | 143 |
| 144 return CellRole; | 144 return CellRole; |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace blink | 147 } // namespace blink |
| OLD | NEW |