Web Inspector: provide a way to view XML/HTML/SVG resource responses as a DOM tree
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / TextContentView.js
index 37bc503..1753219 100644 (file)
@@ -25,9 +25,9 @@
 
 WI.TextContentView = class TextContentView extends WI.ContentView
 {
-    constructor(string, mimeType)
+    constructor(string, mimeType, representedObject)
     {
-        super(string);
+        super(representedObject || string);
 
         this.element.classList.add("text");