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

Unified Diff: chrome/browser/resources/shared/js/cr/ui/table.js

Issue 10977032: Screen reader now reads the file manager selection. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased. Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/shared/js/cr/ui/table.js
diff --git a/chrome/browser/resources/shared/js/cr/ui/table.js b/chrome/browser/resources/shared/js/cr/ui/table.js
index 8c207fda23f4fe8d1bb5f7dbd4169599e4b32b44..1ee0424a2e7c71bf4cf27135598e297441c1de55 100644
--- a/chrome/browser/resources/shared/js/cr/ui/table.js
+++ b/chrome/browser/resources/shared/js/cr/ui/table.js
@@ -168,17 +168,17 @@ cr.define('cr.ui', function() {
*/
decorate: function() {
this.list_ = this.ownerDocument.createElement('list');
+ this.appendChild(this.list_);
TableList.decorate(this.list_);
this.list_.selectionModel = new ListSelectionModel(this);
this.list_.table = this;
this.header_ = this.ownerDocument.createElement('div');
+ this.appendChild(this.header_);
James Hawkins 2012/10/01 02:12:56 Why did you make this change?
mtomasz 2012/10/01 02:50:55 We have to append the list to the DOM tree before
TableHeader.decorate(this.header_);
this.header_.table = this;
this.classList.add('table');
- this.appendChild(this.header_);
- this.appendChild(this.list_);
this.ownerDocument.defaultView.addEventListener(
'resize', this.header_.updateWidth.bind(this.header_));

Powered by Google App Engine
This is Rietveld 408576698