Web Inspector: Move the computation that results in UI strings from JSC to the Web...
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / TypePropertiesSection.js
index cd7ada519e3f8e914b8af43dc8ca3f656bbd5714..53a5029eae64eda06725ae023072b5c618317423 100644 (file)
@@ -27,6 +27,7 @@ WebInspector.TypePropertiesSection = function(types, title, subtitle)
 {
     this.emptyPlaceholder = WebInspector.UIString("No Properties");
     this.types = types;
+    this._typeSet = WebInspector.TypeSet.fromPayload(this.types);
 
     WebInspector.PropertiesSection.call(this, title, subtitle);
 };
@@ -39,7 +40,7 @@ WebInspector.TypePropertiesSection.prototype = {
     {
         this.propertiesTreeOutline.removeChildren();
 
-        var primitiveTypeNames = this.types.primitiveTypeNames;
+        var primitiveTypeNames = this._typeSet.primitiveTypeNames;
         var structures = this.types.structures;
         var properties = [];
         for (var struct of structures) {