| 5899 | } |
| 5900 | |
| 5901 | function setPositiveNumber( elem, value, subtract ) { |
| 5902 | |
| 5903 | // Any relative (+/-) values have already been |
| 5904 | // normalized at this point |
| 5905 | var matches = rcssNum.exec( value ); |
| 5906 | return matches ? |
| 5907 | |
| 5908 | // Guard against undefined "subtract", e.g., when used as in cssHooks |
| 5909 | Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : |
| 5910 | value; |
| 5911 | } |
| 5912 | |
| 5913 | function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { |
| 5914 | var i = extra === ( isBorderBox ? "border" : "content" ) ? |