|
Lines 1-6
a/Source/WebCore/inspector/front-end/ResourcesPanel.js_sec1
|
| 1 |
/* |
1 |
/* |
| 2 |
* Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. |
2 |
* Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 |
* Copyright (C) 2009 Joseph Pecoraro |
3 |
* Copyright (C) 2009 Joseph Pecoraro |
|
|
4 |
* Portions Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. |
| 4 |
* |
5 |
* |
| 5 |
* Redistribution and use in source and binary forms, with or without |
6 |
* Redistribution and use in source and binary forms, with or without |
| 6 |
* modification, are permitted provided that the following conditions |
7 |
* modification, are permitted provided that the following conditions |
|
Lines 1457-1471
WebInspector.DatabaseTreeElement.prototype = {
a/Source/WebCore/inspector/front-end/ResourcesPanel.js_sec2
|
| 1457 |
|
1458 |
|
| 1458 |
onpopulate: function() |
1459 |
onpopulate: function() |
| 1459 |
{ |
1460 |
{ |
| 1460 |
this.removeChildren(); |
|
|
| 1461 |
|
| 1462 |
function tableNamesCallback(tableNames) |
1461 |
function tableNamesCallback(tableNames) |
| 1463 |
{ |
1462 |
{ |
|
|
1463 |
var itemURL = WebInspector.settings.resourcesLastSelectedItem.get(); |
| 1464 |
this.removeChildren(); |
| 1465 |
|
| 1464 |
var tableNamesLength = tableNames.length; |
1466 |
var tableNamesLength = tableNames.length; |
| 1465 |
for (var i = 0; i < tableNamesLength; ++i) |
1467 |
for (var i = 0; i < tableNamesLength; ++i) { |
| 1466 |
this.appendChild(new WebInspector.DatabaseTableTreeElement(this._storagePanel, this._database, tableNames[i])); |
1468 |
var element = new WebInspector.DatabaseTableTreeElement(this._storagePanel, this._database, tableNames[i]); |
|
|
1469 |
this.appendChild(element); |
| 1470 |
if (itemURL && itemURL === element.itemURL) |
| 1471 |
element.revealAndSelect(); |
| 1472 |
} |
| 1467 |
} |
1473 |
} |
| 1468 |
this._database.getTableNames(tableNamesCallback.bind(this)); |
1474 |
this._database.getTableNames(tableNamesCallback.bind(this)); |
|
|
1475 |
}, |
| 1476 |
|
| 1477 |
ontab: function() |
| 1478 |
{ |
| 1479 |
if (this._database && this._database._queryView) { |
| 1480 |
view = this._database._queryView; |
| 1481 |
if (view.afterTab) |
| 1482 |
view.afterTab(); |
| 1483 |
} |
| 1469 |
} |
1484 |
} |
| 1470 |
} |
1485 |
} |
| 1471 |
|
1486 |
|