Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXTable.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 if (!isHTMLTableElement(tableNode)) 123 if (!isHTMLTableElement(tableNode))
124 return false; 124 return false;
125 125
126 // Do not consider it a data table if any of its descendants have an ARIA ro le. 126 // Do not consider it a data table if any of its descendants have an ARIA ro le.
127 HTMLTableElement* tableElement = toHTMLTableElement(tableNode); 127 HTMLTableElement* tableElement = toHTMLTableElement(tableNode);
128 if (elementHasAriaRole(tableElement->tHead())) 128 if (elementHasAriaRole(tableElement->tHead()))
129 return false; 129 return false;
130 if (elementHasAriaRole(tableElement->tFoot())) 130 if (elementHasAriaRole(tableElement->tFoot()))
131 return false; 131 return false;
132 132
133 RefPtrWillBeRawPtr<HTMLCollection> bodies = tableElement->tBodies(); 133 RawPtr<HTMLCollection> bodies = tableElement->tBodies();
134 for (unsigned bodyIndex = 0; bodyIndex < bodies->length(); ++bodyIndex) { 134 for (unsigned bodyIndex = 0; bodyIndex < bodies->length(); ++bodyIndex) {
135 Element* bodyElement = bodies->item(bodyIndex); 135 Element* bodyElement = bodies->item(bodyIndex);
136 if (elementHasAriaRole(bodyElement)) 136 if (elementHasAriaRole(bodyElement))
137 return false; 137 return false;
138 } 138 }
139 139
140 RefPtrWillBeRawPtr<HTMLTableRowsCollection> rows = tableElement->rows(); 140 RawPtr<HTMLTableRowsCollection> rows = tableElement->rows();
141 unsigned rowCount = rows->length(); 141 unsigned rowCount = rows->length();
142 for (unsigned rowIndex = 0; rowIndex < rowCount; ++rowIndex) { 142 for (unsigned rowIndex = 0; rowIndex < rowCount; ++rowIndex) {
143 HTMLTableRowElement* rowElement = rows->item(rowIndex); 143 HTMLTableRowElement* rowElement = rows->item(rowIndex);
144 if (elementHasAriaRole(rowElement)) 144 if (elementHasAriaRole(rowElement))
145 return false; 145 return false;
146 RefPtrWillBeRawPtr<HTMLCollection> cells = rowElement->cells(); 146 RawPtr<HTMLCollection> cells = rowElement->cells();
147 for (unsigned cellIndex = 0; cellIndex < cells->length(); ++cellIndex) { 147 for (unsigned cellIndex = 0; cellIndex < cells->length(); ++cellIndex) {
148 if (elementHasAriaRole(cells->item(cellIndex))) 148 if (elementHasAriaRole(cells->item(cellIndex)))
149 return false; 149 return false;
150 } 150 }
151 } 151 }
152 152
153 // If there is a caption element, summary, THEAD, or TFOOT section, it's mos t certainly a data table 153 // If there is a caption element, summary, THEAD, or TFOOT section, it's mos t certainly a data table
154 if (!tableElement->summary().isEmpty() || tableElement->tHead() || tableElem ent->tFoot() || tableElement->caption()) 154 if (!tableElement->summary().isEmpty() || tableElement->tHead() || tableElem ent->tFoot() || tableElement->caption())
155 return true; 155 return true;
156 156
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 557
558 DEFINE_TRACE(AXTable) 558 DEFINE_TRACE(AXTable)
559 { 559 {
560 visitor->trace(m_rows); 560 visitor->trace(m_rows);
561 visitor->trace(m_columns); 561 visitor->trace(m_columns);
562 visitor->trace(m_headerContainer); 562 visitor->trace(m_headerContainer);
563 AXLayoutObject::trace(visitor); 563 AXLayoutObject::trace(visitor);
564 } 564 }
565 565
566 } // namespace blink 566 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698