Fixes the bug where the Database table names do not update when
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Apr 2008 20:54:34 +0000 (20:54 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Apr 2008 20:54:34 +0000 (20:54 +0000)
commit8049059051d08dd7fd03b05a3834294272400ac9
treee10a5ae28ca3ac78ecc2cc7e8f6db99b5fae2b49
parent435ac4ab9c7cec7a3f4d06108f82bf693bc0e6c2
Fixes the bug where the Database table names do not update when
running the CREATE TABLE or DROP TABLE queries. Also makes the
table names update every time the database is collapsed and expanded.

https://bugs.webkit.org/show_bug.cgi?id=18453

Reviewed by Darin Adler.

* page/inspector/DatabasesPanel.js:
(WebInspector.DatabasesPanel.prototype.updateDatabaseTables):
Set shouldRefreshChildren to true on the Database's tree element.
The refreshChildren property was renamed to shouldRefreshChildren.
(WebInspector.DatabaseSidebarTreeElement.prototype.oncollapse):
Request a refresh after every collapse so the next expand will
have an updated table list.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@32345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/page/inspector/DatabasesPanel.js