Index: Source/devtools/front_end/components/CustomPreviewSection.js |
diff --git a/Source/devtools/front_end/components/CustomPreviewSection.js b/Source/devtools/front_end/components/CustomPreviewSection.js |
index 1d9d6b1e7e16b8472716242cb431e1743d8f74ee..80fe09559821fd5f8a2062921d62cb4e331bd5b3 100644 |
--- a/Source/devtools/front_end/components/CustomPreviewSection.js |
+++ b/Source/devtools/front_end/components/CustomPreviewSection.js |
@@ -45,7 +45,7 @@ WebInspector.CustomPreviewSection.createInShadow = function(object, expand) |
var customPreviewSection = new WebInspector.CustomPreviewSection(object); |
var element = WebInspector.CustomPreviewSection._createComponentRoot(); |
var shadowRoot = element.createShadowRoot(); |
- shadowRoot.appendChild(WebInspector.View.createStyleElement("components/customPreviewSection.css")); |
+ shadowRoot.appendChild(WebInspector.Widget.createStyleElement("components/customPreviewSection.css")); |
shadowRoot.appendChild(customPreviewSection.element()); |
if (expand && object.customPreview().hasBody) |
@@ -136,7 +136,7 @@ WebInspector.CustomPreviewSection.prototype = { |
var componentRoot = WebInspector.CustomPreviewSection._createComponentRoot(); |
header.appendChild(componentRoot); |
var shadowRoot = componentRoot.createShadowRoot(); |
- shadowRoot.appendChild(WebInspector.View.createStyleElement("components/objectValue.css")); |
+ shadowRoot.appendChild(WebInspector.Widget.createStyleElement("components/objectValue.css")); |
shadowRoot.appendChild(WebInspector.ObjectPropertiesSection.createValueElement(remoteObject, false)); |
if (!remoteObject.hasChildren) |
return header; |