| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 25 | 4 | 5 | 0.955 | SourceElements[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 25 | 159 | Closure/closure/goog/style/style.js |
| 2 | 12 | 192 | Closure/closure/goog/style/style.js |
| 3 | 12 | 212 | Closure/closure/goog/style/style.js |
| 4 | 12 | 1478 | Closure/closure/goog/style/style.js |
| ||||
/**
* Retrieves the computed value of the position CSS attribute.
* @param {Element} element The element to get the position of.
* @return {string} Position value.
*/
goog.style.getComputedPosition= function (element){
return goog.style.getStyle_(element, 'position');
} ;
/**
* Retrieves the computed background color string for a given element. The
* string returned is suitable for assigning to another element's
* background-color, but is not guaranteed to be in any particular string
* format. Accessing the color in a numeric form may not be possible in all
* browsers or with all input.
*
* If the background color for the element is defined as a hexadecimal value,
* the resulting string can be parsed by goog.color.parse in all supported
* browsers.
*
* Whether named colors like "red" or "lightblue" get translated into a
* format which can be parsed is browser dependent. Calling this function on
* transparent elements will return "transparent" in most browsers or
* "rgba(0, 0, 0, 0)" in Safari.
* @param {Element} element The element to get the background color of.
* @return {string} The computed string value of the background color.
*/
goog.style.getBackgroundColor= function (element){
return goog.style.getStyle_(element, 'backgroundColor');
} ;
|
| ||||
/**
* Retrieves the computed value of the overflow-x CSS attribute.
* @param {Element} element The element to get the overflow-x of.
* @return {string} The computed string value of the overflow-x attribute.
*/
goog.style.getComputedOverflowX= function (element){
return goog.style.getStyle_(element, 'overflowX');
} ;
/**
* Retrieves the computed value of the overflow-y CSS attribute.
* @param {Element} element The element to get the overflow-y of.
* @return {string} The computed string value of the overflow-y attribute.
*/
goog.style.getComputedOverflowY= function (element){
return goog.style.getStyle_(element, 'overflowY');
} ;
|
| ||||
/**
* Retrieves the computed value of the z-index CSS attribute.
* @param {Element} element The element to get the z-index of.
* @return {string|number} The computed value of the z-index attribute.
*/
goog.style.getComputedZIndex= function (element){
return goog.style.getStyle_(element, 'zIndex');
} ;
/**
* Retrieves the computed value of the text-align CSS attribute.
* @param {Element} element The element to get the text-align of.
* @return {string} The computed string value of the text-align attribute.
*/
goog.style.getComputedTextAlign= function (element){
return goog.style.getStyle_(element, 'textAlign');
} ;
|
| ||||
/**
* Gets the computed paddings (on all sides) in pixels.
* @param {Element} element The element to get the padding for.
* @return {!goog.math.Box} The computed paddings.
*/
goog.style.getPaddingBox= function (element){
return goog.style.getBox_(element, 'padding');
} ;
/**
* Gets the computed margins (on all sides) in pixels.
* @param {Element} element The element to get the margins for.
* @return {!goog.math.Box} The computed margins.
*/
goog.style.getMarginBox= function (element){
return goog.style.getBox_(element, 'margin');
} ;
|
| |||
/**
* Retrieves the computed value of the position CSS attribute.
* @param {Element} element The element to get the position of.
* @return {string} Position value.
*/
/**
* Retrieves the computed value of the overflow-x CSS attribute.
* @param {Element} element The element to get the overflow-x of.
* @return {string} The computed string value of the overflow-x attribute.
*/
/**
* Retrieves the computed value of the z-index CSS attribute.
* @param {Element} element The element to get the z-index of.
* @return {string|number} The computed value of the z-index attribute.
*/
/**
* Gets the computed paddings (on all sides) in pixels.
* @param {Element} element The element to get the padding for.
* @return {!goog.math.Box} The computed paddings.
*/
goog.style. [[#variable5cea0a20]]= function (element)
{ return goog.style. [[#variable5cea0920]](element, [[#variable5638e4e0]]);
} ;
/**
* Retrieves the computed background color string for a given element. The
* string returned is suitable for assigning to another element's
* background-color, but is not guaranteed to be in any particular string
* format. Accessing the color in a numeric form may not be possible in all
* browsers or with all input.
*
* If the background color for the element is defined as a hexadecimal value,
* the resulting string can be parsed by goog.color.parse in all supported
* browsers.
*
* Whether named colors like "red" or "lightblue" get translated into a
* format which can be parsed is browser dependent. Calling this function on
* transparent elements will return "transparent" in most browsers or
* "rgba(0, 0, 0, 0)" in Safari.
* @param {Element} element The element to get the background color of.
* @return {string} The computed string value of the background color.
*/
/**
* Retrieves the computed value of the overflow-y CSS attribute.
* @param {Element} element The element to get the overflow-y of.
* @return {string} The computed string value of the overflow-y attribute.
*/
/**
* Retrieves the computed value of the text-align CSS attribute.
* @param {Element} element The element to get the text-align of.
* @return {string} The computed string value of the text-align attribute.
*/
/**
* Gets the computed margins (on all sides) in pixels.
* @param {Element} element The element to get the margins for.
* @return {!goog.math.Box} The computed margins.
*/
goog.style. [[#variable5cea0900]]= function (element)
{ return goog.style. [[#variable5cea0920]](element, [[#variable5cea0880]]);
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5cea0a20]] | getComputedPosition |
| 1 | 2 | [[#5cea0a20]] | getComputedOverflowX |
| 1 | 3 | [[#5cea0a20]] | getComputedZIndex |
| 1 | 4 | [[#5cea0a20]] | getPaddingBox |
| 2 | 1 | [[#5cea0920]] | getStyle_ |
| 2 | 2 | [[#5cea0920]] | getStyle_ |
| 2 | 3 | [[#5cea0920]] | getStyle_ |
| 2 | 4 | [[#5cea0920]] | getBox_ |
| 3 | 1 | [[#5638e4e0]] | 'position' |
| 3 | 2 | [[#5638e4e0]] | 'overflowX' |
| 3 | 3 | [[#5638e4e0]] | 'zIndex' |
| 3 | 4 | [[#5638e4e0]] | 'padding' |
| 4 | 1 | [[#5cea0900]] | getBackgroundColor |
| 4 | 2 | [[#5cea0900]] | getComputedOverflowY |
| 4 | 3 | [[#5cea0900]] | getComputedTextAlign |
| 4 | 4 | [[#5cea0900]] | getMarginBox |
| 5 | 1 | [[#5cea0880]] | 'backgroundColor' |
| 5 | 2 | [[#5cea0880]] | 'overflowY' |
| 5 | 3 | [[#5cea0880]] | 'textAlign' |
| 5 | 4 | [[#5cea0880]] | 'margin' |