| Index: third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js b/third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js
|
| index 94bde9264dcb20808450c9ca5ee0ca292925bb3a..8b140636b65cf148ae6aad2747d3172e4e5505e4 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js
|
| @@ -32,24 +32,28 @@
|
| * @unrestricted
|
| */
|
| UI.EmptyWidget = class extends UI.VBox {
|
| + /**
|
| + * @param {string} text
|
| + */
|
| constructor(text) {
|
| super();
|
| this.registerRequiredCSS('ui/emptyWidget.css');
|
| this.element.classList.add('empty-view');
|
| - this.textElement = this.element.createChild('span');
|
| - this._text = text;
|
| + this.textElement = this.element.createChild('h2');
|
| + this.textElement.textContent = text;
|
| }
|
|
|
| /**
|
| - * @override
|
| + * @return {!Element}
|
| */
|
| - wasShown() {
|
| - this.textElement.textContent = this._text;
|
| + appendParagraph() {
|
| + return this.element.createChild('p');
|
| }
|
|
|
| + /**
|
| + * @param {string} text
|
| + */
|
| set text(text) {
|
| - this._text = text;
|
| - if (this.isShowing())
|
| - this.textElement.textContent = this._text;
|
| + this.textElement.textContent = text;
|
| }
|
| };
|
|
|