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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 !cellElement.axis().isEmpty() || 235 !cellElement.axis().isEmpty() ||
236 !cellElement.fastGetAttribute(scopeAttr).isEmpty()) 236 !cellElement.fastGetAttribute(scopeAttr).isEmpty())
237 return true; 237 return true;
238 } 238 }
239 239
240 const ComputedStyle* computedStyle = cell->style(); 240 const ComputedStyle* computedStyle = cell->style();
241 if (!computedStyle) 241 if (!computedStyle)
242 continue; 242 continue;
243 243
244 // If the empty-cells style is set, we'll call it a data table. 244 // If the empty-cells style is set, we'll call it a data table.
245 if (computedStyle->emptyCells() == EEmptyCells::Hide) 245 if (computedStyle->emptyCells() == EEmptyCells::kHide)
246 return true; 246 return true;
247 247
248 // If a cell has matching bordered sides, call it a (fully) bordered cell. 248 // If a cell has matching bordered sides, call it a (fully) bordered cell.
249 if ((cell->borderTop() > 0 && cell->borderBottom() > 0) || 249 if ((cell->borderTop() > 0 && cell->borderBottom() > 0) ||
250 (cell->borderLeft() > 0 && cell->borderRight() > 0)) 250 (cell->borderLeft() > 0 && cell->borderRight() > 0))
251 borderedCellCount++; 251 borderedCellCount++;
252 252
253 // Also keep track of each individual border, so we can catch tables where 253 // Also keep track of each individual border, so we can catch tables where
254 // most cells have a bottom border, for example. 254 // most cells have a bottom border, for example.
255 if (cell->borderTop() > 0) 255 if (cell->borderTop() > 0)
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 } 604 }
605 605
606 DEFINE_TRACE(AXTable) { 606 DEFINE_TRACE(AXTable) {
607 visitor->trace(m_rows); 607 visitor->trace(m_rows);
608 visitor->trace(m_columns); 608 visitor->trace(m_columns);
609 visitor->trace(m_headerContainer); 609 visitor->trace(m_headerContainer);
610 AXLayoutObject::trace(visitor); 610 AXLayoutObject::trace(visitor);
611 } 611 }
612 612
613 } // namespace blink 613 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698