| Index: Source/devtools/front_end/ui/View.js
|
| diff --git a/Source/devtools/front_end/ui/View.js b/Source/devtools/front_end/ui/View.js
|
| index 9439d8ff1ffa7ed6bc585088f57c3c0e77bef7f4..3017be2f25b7ee4d6bd3199e169271530e583058 100644
|
| --- a/Source/devtools/front_end/ui/View.js
|
| +++ b/Source/devtools/front_end/ui/View.js
|
| @@ -40,6 +40,7 @@ WebInspector.View = function(isWebComponent)
|
| } else {
|
| this.element = this.contentElement;
|
| }
|
| + this._isWebComponent = isWebComponent;
|
| this.element.__view = this;
|
| this._visible = true;
|
| this._isRoot = false;
|
| @@ -362,9 +363,12 @@ WebInspector.View.prototype = {
|
| this.doResize();
|
| },
|
|
|
| + /**
|
| + * @param {string} cssFile
|
| + */
|
| registerRequiredCSS: function(cssFile)
|
| {
|
| - this.element.appendChild(WebInspector.View.createStyleElement(cssFile));
|
| + (this._isWebComponent ? this._shadowRoot : this.element).appendChild(WebInspector.View.createStyleElement(cssFile));
|
| },
|
|
|
| printViewHierarchy: function()
|
|
|