Title: [127005] trunk/Source/WebCore
Revision
127005
Author
vse...@chromium.org
Date
2012-08-29 09:17:58 -0700 (Wed, 29 Aug 2012)

Log Message

Web Inspector: Minor ResourceScriptMapping polish.
https://bugs.webkit.org/show_bug.cgi?id=95350

Reviewed by Alexander Pavlov.

Added some compiler annotations.
ResourceScriptMapping is no longer a UISourceCodeProvider, removed unused methods and obsolete compiler annotations.

* inspector/front-end/ResourceScriptMapping.js:
(WebInspector.ResourceScriptMapping):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (127004 => 127005)


--- trunk/Source/WebCore/ChangeLog	2012-08-29 16:12:42 UTC (rev 127004)
+++ trunk/Source/WebCore/ChangeLog	2012-08-29 16:17:58 UTC (rev 127005)
@@ -1,5 +1,18 @@
 2012-08-29  Vsevolod Vlasov  <vse...@chromium.org>
 
+        Web Inspector: Minor ResourceScriptMapping polish.
+        https://bugs.webkit.org/show_bug.cgi?id=95350
+
+        Reviewed by Alexander Pavlov.
+
+        Added some compiler annotations.
+        ResourceScriptMapping is no longer a UISourceCodeProvider, removed unused methods and obsolete compiler annotations.
+
+        * inspector/front-end/ResourceScriptMapping.js:
+        (WebInspector.ResourceScriptMapping):
+
+2012-08-29  Vsevolod Vlasov  <vse...@chromium.org>
+
         Web Inspector: Extract StylesSourceMapping from StylesUISourceCodeProvider.
         https://bugs.webkit.org/show_bug.cgi?id=95345
 

Modified: trunk/Source/WebCore/inspector/front-end/ResourceScriptMapping.js (127004 => 127005)


--- trunk/Source/WebCore/inspector/front-end/ResourceScriptMapping.js	2012-08-29 16:12:42 UTC (rev 127004)
+++ trunk/Source/WebCore/inspector/front-end/ResourceScriptMapping.js	2012-08-29 16:17:58 UTC (rev 127005)
@@ -30,17 +30,19 @@
 
 /**
  * @constructor
- * @extends {WebInspector.Object}
  * @implements {WebInspector.SourceMapping}
- * @implements {WebInspector.UISourceCodeProvider}
  * @param {WebInspector.Workspace} workspace
  */
 WebInspector.ResourceScriptMapping = function(workspace)
 {
     this._workspace = workspace;
+    /** @type {Array.<WebInspector.RawSourceCode>} */
     this._rawSourceCodes = [];
+    /** @type {Object.<string, WebInspector.RawSourceCode>} */
     this._rawSourceCodeForScriptId = {};
+    /** @type {Object.<string, WebInspector.RawSourceCode>} */
     this._rawSourceCodeForURL = {};
+    /** @type {Object.<string, WebInspector.RawSourceCode>} */
     this._rawSourceCodeForDocumentURL = {};
     this._rawSourceCodeForUISourceCode = new Map();
     this._workspace.addEventListener(WebInspector.Workspace.Events.ProjectWillReset, this._reset, this);
@@ -71,20 +73,6 @@
     },
 
     /**
-     * @return {Array.<WebInspector.UISourceCode>}
-     */
-    uiSourceCodes: function()
-    {
-        var result = [];
-        for (var i = 0; i < this._rawSourceCodes.length; ++i) {
-            var uiSourceCode = this._rawSourceCodes[i].uiSourceCode();
-            if (uiSourceCode)
-                result.push(uiSourceCode);
-        }
-        return result;
-    },
-
-    /**
      * @param {WebInspector.Script} script
      */
     addScript: function(script)
@@ -223,5 +211,3 @@
         this._rawSourceCodeForUISourceCode.clear();
     }
 }
-
-WebInspector.ResourceScriptMapping.prototype.__proto__ = WebInspector.Object.prototype;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to