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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 && tableBGColor != cellColor && cellColor.alpha() != 1) | 268 && tableBGColor != cellColor && cellColor.alpha() != 1) |
269 backgroundDifferenceCellCount++; | 269 backgroundDifferenceCellCount++; |
270 | 270 |
271 // If we've found 10 "good" cells, we don't need to keep searching. | 271 // If we've found 10 "good" cells, we don't need to keep searching. |
272 if (borderedCellCount >= 10 || backgroundDifferenceCellCount >= 10) | 272 if (borderedCellCount >= 10 || backgroundDifferenceCellCount >= 10) |
273 return true; | 273 return true; |
274 | 274 |
275 // For the first 5 rows, cache the background color so we can check
if this table has zebra-striped rows. | 275 // For the first 5 rows, cache the background color so we can check
if this table has zebra-striped rows. |
276 if (row < 5 && row == alternatingRowColorCount) { | 276 if (row < 5 && row == alternatingRowColorCount) { |
277 LayoutObject* layoutRow = cell->parent(); | 277 LayoutObject* layoutRow = cell->parent(); |
278 if (!layoutRow || !layoutRow->isBoxModelObject() || !toRenderBox
ModelObject(layoutRow)->isTableRow()) | 278 if (!layoutRow || !layoutRow->isBoxModelObject() || !toLayoutBox
ModelObject(layoutRow)->isTableRow()) |
279 continue; | 279 continue; |
280 LayoutStyle* rowLayoutStyle = layoutRow->style(); | 280 LayoutStyle* rowLayoutStyle = layoutRow->style(); |
281 if (!rowLayoutStyle) | 281 if (!rowLayoutStyle) |
282 continue; | 282 continue; |
283 Color rowColor = rowLayoutStyle->visitedDependentColor(CSSProper
tyBackgroundColor); | 283 Color rowColor = rowLayoutStyle->visitedDependentColor(CSSProper
tyBackgroundColor); |
284 alternatingRowColors[alternatingRowColorCount] = rowColor; | 284 alternatingRowColors[alternatingRowColorCount] = rowColor; |
285 alternatingRowColorCount++; | 285 alternatingRowColorCount++; |
286 } | 286 } |
287 } | 287 } |
288 | 288 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 } | 587 } |
588 | 588 |
589 // try the standard | 589 // try the standard |
590 if (title.isEmpty()) | 590 if (title.isEmpty()) |
591 title = AXRenderObject::title(mode); | 591 title = AXRenderObject::title(mode); |
592 | 592 |
593 return title; | 593 return title; |
594 } | 594 } |
595 | 595 |
596 } // namespace blink | 596 } // namespace blink |
OLD | NEW |