OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 return false; | 138 return false; |
139 } | 139 } |
140 | 140 |
141 RefPtrWillBeRawPtr<HTMLTableRowsCollection> rows = tableElement->rows(); | 141 RefPtrWillBeRawPtr<HTMLTableRowsCollection> rows = tableElement->rows(); |
142 unsigned rowCount = rows->length(); | 142 unsigned rowCount = rows->length(); |
143 for (unsigned rowIndex = 0; rowIndex < rowCount; ++rowIndex) { | 143 for (unsigned rowIndex = 0; rowIndex < rowCount; ++rowIndex) { |
144 Element* rowElement = rows->item(rowIndex); | 144 Element* rowElement = rows->item(rowIndex); |
145 if (elementHasAriaRole(rowElement)) | 145 if (elementHasAriaRole(rowElement)) |
146 return false; | 146 return false; |
147 if (rowElement->hasTagName(trTag)) { | 147 if (rowElement->hasTagName(trTag)) { |
148 HTMLTableRowElement* row = static_cast<HTMLTableRowElement*>(rowElem
ent); | 148 RefPtrWillBeRawPtr<HTMLCollection> cells = toHTMLTableRowElement(row
Element)->cells(); |
149 RefPtrWillBeRawPtr<HTMLCollection> cells = row->cells(); | |
150 for (unsigned cellIndex = 0; cellIndex < cells->length(); ++cellInde
x) { | 149 for (unsigned cellIndex = 0; cellIndex < cells->length(); ++cellInde
x) { |
151 if (elementHasAriaRole(cells->item(cellIndex))) | 150 if (elementHasAriaRole(cells->item(cellIndex))) |
152 return false; | 151 return false; |
153 } | 152 } |
154 } | 153 } |
155 } | 154 } |
156 | 155 |
157 // If there is a caption element, summary, THEAD, or TFOOT section, it's mos
t certainly a data table | 156 // If there is a caption element, summary, THEAD, or TFOOT section, it's mos
t certainly a data table |
158 if (!tableElement->summary().isEmpty() || tableElement->tHead() || tableElem
ent->tFoot() || tableElement->caption()) | 157 if (!tableElement->summary().isEmpty() || tableElement->tHead() || tableElem
ent->tFoot() || tableElement->caption()) |
159 return true; | 158 return true; |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 } | 572 } |
574 | 573 |
575 // try the standard | 574 // try the standard |
576 if (title.isEmpty()) | 575 if (title.isEmpty()) |
577 title = AXRenderObject::title(); | 576 title = AXRenderObject::title(); |
578 | 577 |
579 return title; | 578 return title; |
580 } | 579 } |
581 | 580 |
582 } // namespace WebCore | 581 } // namespace WebCore |
OLD | NEW |