| Index: third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
|
| index b0a4b9c519956d5144dd1e2e95d4d2c8b02677ba..2d797d096f2af43db7afcd8b53e2861023858ed3 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
|
| @@ -35,7 +35,9 @@ Resources.DatabaseQueryView = class extends UI.VBox {
|
| this.element.classList.add('storage-view', 'query', 'monospace');
|
| this.element.addEventListener('selectstart', this._selectStart.bind(this), false);
|
|
|
| + this._promptIcon = UI.Icon.create('smallicon-text-prompt', 'prompt-icon');
|
| this._promptElement = createElement('div');
|
| + this._promptElement.appendChild(this._promptIcon);
|
| this._promptElement.className = 'database-query-prompt';
|
| this._promptElement.appendChild(createElement('br'));
|
| this._promptElement.addEventListener('keydown', this._promptKeyDown.bind(this), true);
|
| @@ -129,6 +131,7 @@ Resources.DatabaseQueryView = class extends UI.VBox {
|
| return;
|
|
|
| this._prompt.setText('');
|
| + this._promptElement.insertBefore(this._promptIcon, this._promptElement.firstChild);
|
|
|
| this.database.executeSql(query, this._queryFinished.bind(this, query), this._queryError.bind(this, query));
|
| }
|
| @@ -168,14 +171,19 @@ Resources.DatabaseQueryView = class extends UI.VBox {
|
| _appendErrorQueryResult(query, errorText) {
|
| var resultElement = this._appendQueryResult(query);
|
| resultElement.classList.add('error');
|
| - resultElement.textContent = errorText;
|
| + resultElement.appendChild(UI.Icon.create('smallicon-error', 'prompt-icon'));
|
| + resultElement.createTextChild(errorText);
|
|
|
| this._promptElement.scrollIntoView(false);
|
| }
|
|
|
| + /**
|
| + * @param {string} query
|
| + */
|
| _appendQueryResult(query) {
|
| var element = createElement('div');
|
| element.className = 'database-user-query';
|
| + element.appendChild(UI.Icon.create('smallicon-user-command', 'prompt-icon'));
|
| this.element.insertBefore(element, this._proxyElement);
|
|
|
| var commandTextElement = createElement('span');
|
|
|