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

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

Issue 944923004: rendering/RenderBoxModelObject -> layout/LayoutBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/accessibility/AXRenderObject.cpp ('k') | Source/web/WebElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXRenderObject.cpp ('k') | Source/web/WebElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698