Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
26 | 2 | 0 | 1.000 | StatementList[9] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 26 | 241 | Closure/closure/goog/graphics/canvasgraphics.js |
2 | 26 | 412 | Closure/closure/goog/graphics/svggraphics.js |
| ||||
var height= this.height; var computeWidth= goog.isString(width) && width.indexOf('%')!= -1; var computeHeight= goog.isString(height) && height.indexOf('%')!= -1; if (!this.isInDocument( ) && (computeWidth || computeHeight)) { return null; } var parent; var parentSize; if (computeWidth) { parent= /** @type {Element} */ (this.getElement( ).parentNode); parentSize= goog.style.getSize(parent); width= parseFloat( /** @type {string} */ (width))* parentSize.width/ 100; } if (computeHeight) { parent= parent || /** @type {Element} */ (this.getElement( ).parentNode); parentSize= parentSize || goog.style.getSize(parent); height= parseFloat( /** @type {string} */ (height))* parentSize.height/100; } return new goog.math.Size( /** @type {number} */ (width), /** @type {number} */ (height)); |
| ||||
var height= this.height; var computeWidth= goog.isString(width) && width.indexOf('%')!= -1; var computeHeight= goog.isString(height) && height.indexOf('%')!= -1; if (!this.isInDocument( ) && (computeWidth || computeHeight)) { return null; } var parent; var parentSize; if (computeWidth) { parent= /** @type {Element} */ (this.getElement( ).parentNode); parentSize= goog.style.getSize(parent); width= parseFloat( /** @type {string} */ (width))* parentSize.width/ 100; } if (computeHeight) { parent= parent || /** @type {Element} */ (this.getElement( ).parentNode); parentSize= parentSize || goog.style.getSize(parent); height= parseFloat( /** @type {string} */ (height))* parentSize.height/100; } return new goog.math.Size( /** @type {number} */ (width), /** @type {number} */ (height)); |
| |||
var height=this.height; var computeWidth=goog.isString(width) && width.indexOf('%')!=-1; var computeHeight=goog.isString(height) && height.indexOf('%')!=-1; if (!this.isInDocument( ) && (computeWidth || computeHeight)) { return null; } var parent; var parentSize; if (computeWidth) { parent= /** @type {Element} */ (this.getElement( ).parentNode); parentSize=goog.style.getSize(parent); width=parseFloat( /** @type {string} */ (width))*parentSize.width/100; } if (computeHeight) { parent=parent || /** @type {Element} */ (this.getElement( ).parentNode); parentSize=parentSize || goog.style.getSize(parent); height=parseFloat( /** @type {string} */ (height))*parentSize.height/100; } return new goog.math.Size( /** @type {number} */ (width), /** @type {number} */ (height)); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |