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

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

Issue 907983002: Table's columns and rows should not be modified outside. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « Source/modules/accessibility/AXTable.h ('k') | no next file » | 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 if (m_headerContainer) 442 if (m_headerContainer)
443 return m_headerContainer.get(); 443 return m_headerContainer.get();
444 444
445 AXMockObject* tableHeader = toAXMockObject(axObjectCache()->getOrCreate(Tabl eHeaderContainerRole)); 445 AXMockObject* tableHeader = toAXMockObject(axObjectCache()->getOrCreate(Tabl eHeaderContainerRole));
446 tableHeader->setParent(this); 446 tableHeader->setParent(this);
447 447
448 m_headerContainer = tableHeader; 448 m_headerContainer = tableHeader;
449 return m_headerContainer.get(); 449 return m_headerContainer.get();
450 } 450 }
451 451
452 AXObject::AccessibilityChildrenVector& AXTable::columns() 452 const AXObject::AccessibilityChildrenVector& AXTable::columns()
453 { 453 {
454 updateChildrenIfNecessary(); 454 updateChildrenIfNecessary();
455 455
456 return m_columns; 456 return m_columns;
457 } 457 }
458 458
459 AXObject::AccessibilityChildrenVector& AXTable::rows() 459 const AXObject::AccessibilityChildrenVector& AXTable::rows()
460 { 460 {
461 updateChildrenIfNecessary(); 461 updateChildrenIfNecessary();
462 462
463 return m_rows; 463 return m_rows;
464 } 464 }
465 465
466 void AXTable::columnHeaders(AccessibilityChildrenVector& headers) 466 void AXTable::columnHeaders(AccessibilityChildrenVector& headers)
467 { 467 {
468 if (!m_renderer) 468 if (!m_renderer)
469 return; 469 return;
(...skipping 117 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(); 591 title = AXRenderObject::title();
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/AXTable.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698