CloneSet241


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25450.955SourceElements[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
125159
Closure/closure/goog/style/style.js
212192
Closure/closure/goog/style/style.js
312212
Closure/closure/goog/style/style.js
4121478
Closure/closure/goog/style/style.js
Clone Instance
1
Line Count
25
Source Line
159
Source File
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');
                                                  } ;


Clone Instance
2
Line Count
12
Source Line
192
Source File
Closure/closure/goog/style/style.js

/**
 * 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');
                                                    } ;


Clone Instance
3
Line Count
12
Source Line
212
Source File
Closure/closure/goog/style/style.js

/**
 * 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');
                                                    } ;


Clone Instance
4
Line Count
12
Source Line
1478
Source File
Closure/closure/goog/style/style.js

/**
 * 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');
                                            } ;


Clone AbstractionParameter Count: 5Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5cea0a20]]
getComputedPosition 
12[[#5cea0a20]]
getComputedOverflowX 
13[[#5cea0a20]]
getComputedZIndex 
14[[#5cea0a20]]
getPaddingBox 
21[[#5cea0920]]
getStyle_ 
22[[#5cea0920]]
getStyle_ 
23[[#5cea0920]]
getStyle_ 
24[[#5cea0920]]
getBox_ 
31[[#5638e4e0]]
'position' 
32[[#5638e4e0]]
'overflowX' 
33[[#5638e4e0]]
'zIndex' 
34[[#5638e4e0]]
'padding' 
41[[#5cea0900]]
getBackgroundColor 
42[[#5cea0900]]
getComputedOverflowY 
43[[#5cea0900]]
getComputedTextAlign 
44[[#5cea0900]]
getMarginBox 
51[[#5cea0880]]
'backgroundColor' 
52[[#5cea0880]]
'overflowY' 
53[[#5cea0880]]
'textAlign' 
54[[#5cea0880]]
'margin'