Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(603)

Unified Diff: Source/core/inspector/InjectedScriptCanvasModuleSource.js

Issue 315253002: DevTools: [JSDoc] Fix injected scripts JSDoc and related code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InjectedScriptCanvasModuleSource.js
diff --git a/Source/core/inspector/InjectedScriptCanvasModuleSource.js b/Source/core/inspector/InjectedScriptCanvasModuleSource.js
index a0aed6e27132199432845e89da1dc1b5742fea08..eed4d9eb5761cf15628b4fa172c46bdf32d1e034 100644
--- a/Source/core/inspector/InjectedScriptCanvasModuleSource.js
+++ b/Source/core/inspector/InjectedScriptCanvasModuleSource.js
@@ -259,8 +259,6 @@ StackTrace.create = function(stackTraceLimit, topMostFunctionToIgnore)
*/
function StackTraceV8(stackTraceLimit, topMostFunctionToIgnore)
{
- StackTrace.call(this);
-
var oldPrepareStackTrace = Error.prepareStackTrace;
var oldStackTraceLimit = Error.stackTraceLimit;
if (typeof stackTraceLimit === "number")
@@ -299,9 +297,7 @@ StackTraceV8.prototype = {
callFrame: function(index)
{
return this._stackTrace[index];
- },
-
- __proto__: StackTrace.prototype
+ }
}
/**
@@ -987,6 +983,7 @@ Resource.prototype = {
/**
* @param {string} property
+ * @this {Resource}
*/
function processProperty(property)
{
@@ -1168,7 +1165,7 @@ Resource.WrapFunction.prototype = {
*/
Resource.WrapFunction.resourceFactoryMethod = function(resourceConstructor, resourceName)
{
- /** @this Resource.WrapFunction */
+ /** @this {Resource.WrapFunction} */
return function()
{
var wrappedObject = /** @type {Object} */ (this.result());
@@ -1287,7 +1284,7 @@ LogEverythingResource.prototype = {
var wrappedObject = this.wrappedObject();
if (wrappedObject) {
for (var property in wrappedObject) {
- /** @this Resource.WrapFunction */
+ /** @this {Resource.WrapFunction} */
wrapFunctions[property] = function()
{
this._resource.pushCall(this.call());
@@ -2952,7 +2949,7 @@ WebGLRenderingContextResource.prototype = {
stateModifyingWrapFunction("texParameteri", WebGLTextureResource.prototype.pushCall_texParameter);
stateModifyingWrapFunction("renderbufferStorage");
- /** @this Resource.WrapFunction */
+ /** @this {Resource.WrapFunction} */
wrapFunctions["getError"] = function()
{
var gl = /** @type {WebGLRenderingContext} */ (this._originalObject);
@@ -2968,7 +2965,7 @@ WebGLRenderingContextResource.prototype = {
/**
* @param {string} name
- * @this Resource.WrapFunction
+ * @this {Resource.WrapFunction}
*/
wrapFunctions["getExtension"] = function(name)
{
@@ -2982,7 +2979,7 @@ WebGLRenderingContextResource.prototype = {
/**
* @param {WebGLProgram} program
* @param {WebGLShader} shader
- * @this Resource.WrapFunction
+ * @this {Resource.WrapFunction}
*/
wrapFunctions["attachShader"] = function(program, shader)
{
@@ -3001,7 +2998,7 @@ WebGLRenderingContextResource.prototype = {
* @param {number} attachment
* @param {number} objectTarget
* @param {WebGLRenderbuffer|WebGLTexture} obj
- * @this Resource.WrapFunction
+ * @this {Resource.WrapFunction}
*/
wrapFunctions["framebufferRenderbuffer"] = wrapFunctions["framebufferTexture2D"] = function(target, attachment, objectTarget, obj)
{
@@ -3014,7 +3011,7 @@ WebGLRenderingContextResource.prototype = {
/**
* @param {number} target
* @param {Object} obj
- * @this Resource.WrapFunction
+ * @this {Resource.WrapFunction}
*/
wrapFunctions["bindBuffer"] = wrapFunctions["bindFramebuffer"] = wrapFunctions["bindRenderbuffer"] = function(target, obj)
{
@@ -3024,7 +3021,7 @@ WebGLRenderingContextResource.prototype = {
/**
* @param {number} target
* @param {WebGLTexture} obj
- * @this Resource.WrapFunction
+ * @this {Resource.WrapFunction}
*/
wrapFunctions["bindTexture"] = function(target, obj)
{
@@ -3035,7 +3032,7 @@ WebGLRenderingContextResource.prototype = {
}
/**
* @param {WebGLProgram} program
- * @this Resource.WrapFunction
+ * @this {Resource.WrapFunction}
*/
wrapFunctions["useProgram"] = function(program)
{
@@ -3043,7 +3040,7 @@ WebGLRenderingContextResource.prototype = {
}
/**
* @param {number} index
- * @this Resource.WrapFunction
+ * @this {Resource.WrapFunction}
*/
wrapFunctions["vertexAttribPointer"] = function(index)
{
@@ -3063,7 +3060,7 @@ WebGLRenderingContextResource.prototype = {
if (pushCallFunc) {
/**
* @param {Object|number} target
- * @this Resource.WrapFunction
+ * @this {Resource.WrapFunction}
*/
wrapFunctions[methodName] = function(target)
{
@@ -3074,7 +3071,7 @@ WebGLRenderingContextResource.prototype = {
} else {
/**
* @param {Object|number} target
- * @this Resource.WrapFunction
+ * @this {Resource.WrapFunction}
*/
wrapFunctions[methodName] = function(target)
{
@@ -3497,13 +3494,13 @@ CanvasRenderingContext2DResource.prototype = {
function stateModifyingWrapFunction(methodName, func)
{
if (func) {
- /** @this Resource.WrapFunction */
+ /** @this {Resource.WrapFunction} */
wrapFunctions[methodName] = function()
{
func.call(this._resource, this.call());
}
} else {
- /** @this Resource.WrapFunction */
+ /** @this {Resource.WrapFunction} */
wrapFunctions[methodName] = function()
{
this._resource.pushCall(this.call());
@@ -4164,6 +4161,7 @@ TraceLogPlayer.prototype = {
{
/**
* @param {*} obj
+ * @this {TraceLogPlayer}
*/
function replayIfNotCreatedInThisTraceLog(obj)
{
« no previous file with comments | « no previous file | Source/core/inspector/InjectedScriptSource.js » ('j') | Source/core/inspector/InjectedScriptSource.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698