+++ /dev/null
-/*\r
- * xbStyle-css.js\r
- * $Revision: 1.2 $ $Date: 2003/02/07 16:04:21 $\r
- *\r
- */\r
-\r
-/* ***** BEGIN LICENSE BLOCK *****\r
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1\r
- *\r
- * The contents of this file are subject to the Mozilla Public License Version\r
- * 1.1 (the "License"); you may not use this file except in compliance with\r
- * the License. You may obtain a copy of the License at\r
- * http://www.mozilla.org/MPL/\r
- *\r
- * Software distributed under the License is distributed on an "AS IS" basis,\r
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
- * for the specific language governing rights and limitations under the\r
- * License.\r
- *\r
- * The Original Code is Netscape code.\r
- *\r
- * The Initial Developer of the Original Code is\r
- * Netscape Corporation.\r
- * Portions created by the Initial Developer are Copyright (C) 2001\r
- * the Initial Developer. All Rights Reserved.\r
- *\r
- * Contributor(s): Bob Clary <bclary@netscape.com>\r
- *\r
- * ***** END LICENSE BLOCK ***** */\r
-\r
-// xbStyle.getClip()\r
-\r
-function cssStyleGetClip()\r
-{\r
- var clip = this.getEffectiveValue('clip');\r
-\r
- // hack opera\r
- if (clip == 'rect()')\r
- clip = '';\r
-\r
- if (clip == '' || clip == 'auto')\r
- {\r
- clip = 'rect(0px, ' + this.getWidth() + 'px, ' + this.getHeight() + 'px, 0px)';\r
- }\r
- else\r
- { \r
- clip = clip.replace(/px /g, 'px, ');\r
- }\r
-\r
- return clip;\r
-}\r
-\r
-// xbStyle.setClip()\r
-\r
-function cssStyleSetClip(sClipString)\r
-{\r
- this.styleObj.clip = sClipString;\r
-}\r
-\r
-// xbStyle.getClipTop()\r
-\r
-function cssStyleGetClipTop()\r
-{\r
- var clip = this.getClip();\r
- var rect = new xbClipRect(clip);\r
- return rect.top;\r
-}\r
-\r
-// xbStyle.setClipTop()\r
-\r
-function cssStyleSetClipTop(top)\r
-{\r
- var clip = this.getClip();\r
- var rect = new xbClipRect(clip);\r
- rect.top = top;\r
- this.styleObj.clip = rect.toString();\r
-}\r
-\r
-// xbStyle.getClipRight()\r
-\r
-function cssStyleGetClipRight()\r
-{\r
- var clip = this.getClip();\r
- var rect = new xbClipRect(clip);\r
- return rect.right;\r
-}\r
-\r
-// xbStyle.setClipRight()\r
-\r
-function cssStyleSetClipRight(right)\r
-{\r
- var clip = this.getClip();\r
- var rect = new xbClipRect(clip);\r
- rect.right = right;\r
- this.styleObj.clip = rect.toString();\r
-}\r
-\r
-// xbStyle.getClipBottom()\r
-\r
-function cssStyleGetClipBottom()\r
-{\r
- var clip = this.getClip();\r
- var rect = new xbClipRect(clip);\r
- return rect.bottom;\r
-}\r
-\r
-// xbStyle.setClipBottom()\r
-\r
-function cssStyleSetClipBottom(bottom)\r
-{\r
- var clip = this.getClip();\r
- var rect = new xbClipRect(clip);\r
- rect.bottom = bottom;\r
- this.styleObj.clip = rect.toString();\r
-}\r
-\r
-// xbStyle.getClipLeft()\r
-\r
-function cssStyleGetClipLeft()\r
-{\r
- var clip = this.getClip();\r
- var rect = new xbClipRect(clip);\r
- return rect.left;\r
-}\r
-\r
-// xbStyle.setClipLeft()\r
-\r
-function cssStyleSetClipLeft(left)\r
-{\r
- var clip = this.getClip();\r
- var rect = new xbClipRect(clip);\r
- rect.left = left;\r
- this.styleObj.clip = rect.toString();\r
-}\r
-\r
-// xbStyle.getClipWidth()\r
-\r
-function cssStyleGetClipWidth()\r
-{\r
- var clip = this.getClip();\r
- var rect = new xbClipRect(clip);\r
- return rect.getWidth();\r
-}\r
-\r
-// xbStyle.setClipWidth()\r
-\r
-function cssStyleSetClipWidth(width)\r
-{\r
- var clip = this.getClip();\r
- var rect = new xbClipRect(clip);\r
- rect.setWidth(width);\r
- this.styleObj.clip = rect.toString();\r
-}\r
-\r
-// xbStyle.getClipHeight()\r
-\r
-function cssStyleGetClipHeight()\r
-{\r
- var clip = this.getClip();\r
- var rect = new xbClipRect(clip);\r
- return rect.getHeight();\r
-}\r
-\r
-// xbStyle.setClipHeight()\r
-\r
-function cssStyleSetClipHeight(height)\r
-{\r
- var clip = this.getClip();\r
- var rect = new xbClipRect(clip);\r
- rect.setHeight(height);\r
- this.styleObj.clip = rect.toString();\r
-}\r
-\r
-// the CSS attributes left,top are for absolutely positioned elements\r
-// measured relative to the containing element. for relatively positioned\r
-// elements, left,top are measured from the element's normal inline position.\r
-// getLeft(), setLeft() operate on this type of coordinate.\r
-//\r
-// to allow dynamic positioning the getOffsetXXX and setOffsetXXX methods are\r
-// defined to return and set the position of either an absolutely or relatively\r
-// positioned element relative to the containing element.\r
-//\r
-//\r
-\r
-// xbStyle.getLeft()\r
-\r
-function cssStyleGetLeft()\r
-{\r
- var left = this.getEffectiveValue('left');\r
- if (typeof(left) == 'number')\r
- return left;\r
-\r
- if (left != '' && left.indexOf('px') == -1)\r
- {\r
- xbDEBUG.dump('xbStyle.getLeft: Element ID=' + this.object.id + ' does not use pixels as units. left=' + left + ' Click Ok to continue, Cancel to Abort');\r
- return 0;\r
- }\r
-\r
- if (top == 'auto' && this.object && typeof(this.object.offsetTop) == 'number')\r
- {\r
- left = this.object.offsetTop + 'px';\r
- }\r
-\r
- if (left == '')\r
- left = '0px';\r
- \r
- return xbToInt(left);\r
-}\r
-\r
-// xbStyle.setLeft()\r
-\r
-function cssStyleSetLeft(left)\r
-{\r
- if (typeof(this.styleObj.left) == 'number')\r
- this.styleObj.left = left;\r
- else\r
- this.styleObj.left = left + 'px';\r
-}\r
-\r
-// xbStyle.getTop()\r
-\r
-function cssStyleGetTop()\r
-{\r
- var top = this.getEffectiveValue('top');\r
- if (typeof(top) == 'number')\r
- return top;\r
-\r
- if (top != '' && top.indexOf('px') == -1)\r
- {\r
- xbDEBUG.dump('xbStyle.getTop: Element ID=' + this.object.id + ' does not use pixels as units. top=' + top + ' Click Ok to continue, Cancel to Abort');\r
- return 0;\r
- }\r
-\r
- if (top == 'auto' && this.object && typeof(this.object.offsetTop) == 'number')\r
- {\r
- top = this.object.offsetTop + 'px';\r
- }\r
-\r
- if (top == '')\r
- top = '0px';\r
- \r
- return xbToInt(top);\r
-}\r
-\r
-// xbStyle.setTop()\r
-\r
-function cssStyleSetTop(top)\r
-{\r
- if (typeof(this.styleObj.top) == 'number')\r
- this.styleObj.top = top;\r
- else\r
- this.styleObj.top = top + 'px';\r
-}\r
-\r
-// xbStyle.getPageX()\r
-\r
-function cssStyleGetPageX()\r
-{\r
- var x = 0;\r
- var elm = this.object;\r
- var elmstyle;\r
- var position;\r
- \r
- //xxxHack: Due to limitations in Gecko's (0.9.6) ability to determine the \r
- // effective position attribute , attempt to use offsetXXX\r
-\r
- if (typeof(elm.offsetLeft) == 'number')\r
- {\r
- while (elm)\r
- {\r
- x += elm.offsetLeft;\r
- elm = elm.offsetParent;\r
- }\r
- }\r
- else\r
- {\r
- while (elm)\r
- {\r
- if (elm.style)\r
- {\r
- elmstyle = new xbStyle(elm);\r
- position = elmstyle.getEffectiveValue('position');\r
- if (position != '' && position != 'static')\r
- x += elmstyle.getLeft();\r
- }\r
- elm = elm.parentNode;\r
- }\r
- }\r
- \r
- return x;\r
-}\r
-\r
-// xbStyle.setPageX()\r
-\r
-function cssStyleSetPageX(x)\r
-{\r
- var xParent = 0;\r
- var elm = this.object.parentNode;\r
- var elmstyle;\r
- var position;\r
- \r
- //xxxHack: Due to limitations in Gecko's (0.9.6) ability to determine the \r
- // effective position attribute , attempt to use offsetXXX\r
-\r
- if (elm && typeof(elm.offsetLeft) == 'number')\r
- {\r
- while (elm)\r
- {\r
- xParent += elm.offsetLeft;\r
- elm = elm.offsetParent;\r
- }\r
- }\r
- else\r
- {\r
- while (elm)\r
- {\r
- if (elm.style)\r
- {\r
- elmstyle = new xbStyle(elm);\r
- position = elmstyle.getEffectiveValue('position');\r
- if (position != '' && position != 'static')\r
- xParent += elmstyle.getLeft();\r
- }\r
- elm = elm.parentNode;\r
- }\r
- }\r
- \r
- x -= xParent;\r
-\r
- this.setLeft(x);\r
-}\r
- \r
-// xbStyle.getPageY()\r
-\r
-function cssStyleGetPageY()\r
-{\r
- var y = 0;\r
- var elm = this.object;\r
- var elmstyle;\r
- var position;\r
- \r
- //xxxHack: Due to limitations in Gecko's (0.9.6) ability to determine the \r
- // effective position attribute , attempt to use offsetXXX\r
-\r
- if (typeof(elm.offsetTop) == 'number')\r
- {\r
- while (elm)\r
- {\r
- y += elm.offsetTop;\r
- elm = elm.offsetParent;\r
- }\r
- }\r
- else\r
- {\r
- while (elm)\r
- {\r
- if (elm.style)\r
- {\r
- elmstyle = new xbStyle(elm);\r
- position = elmstyle.getEffectiveValue('position');\r
- if (position != '' && position != 'static')\r
- y += elmstyle.getTop();\r
- }\r
- elm = elm.parentNode;\r
- }\r
- }\r
- \r
- return y;\r
-}\r
-\r
-// xbStyle.setPageY()\r
-\r
-function cssStyleSetPageY(y)\r
-{\r
- var yParent = 0;\r
- var elm = this.object.parentNode;\r
- var elmstyle;\r
- var position;\r
- \r
- //xxxHack: Due to limitations in Gecko's (0.9.6) ability to determine the \r
- // effective position attribute , attempt to use offsetXXX\r
-\r
- if (elm && typeof(elm.offsetTop) == 'number')\r
- {\r
- while (elm)\r
- {\r
- yParent += elm.offsetTop;\r
- elm = elm.offsetParent;\r
- }\r
- }\r
- else\r
- {\r
- while (elm)\r
- {\r
- if (elm.style)\r
- {\r
- elmstyle = new xbStyle(elm);\r
- position = elmstyle.getEffectiveValue('position');\r
- if (position != '' && position != 'static')\r
- yParent += elmstyle.getTop();\r
- }\r
- elm = elm.parentNode;\r
- }\r
- }\r
- \r
- y -= yParent;\r
-\r
- this.setTop(y);\r
-}\r
- \r
-// xbStyle.getHeight()\r
-\r
-function cssStyleGetHeight()\r
-{\r
- var display = this.getEffectiveValue('display');\r
- var height = this.getEffectiveValue('height');\r
-\r
- if (typeof(height) == 'number')\r
- {\r
- // Opera\r
- return height;\r
- }\r
-\r
- if (height == '' || height == 'auto' || height.indexOf('%') != -1)\r
- {\r
- if (typeof(this.object.offsetHeight) == 'number')\r
- {\r
- height = this.object.offsetHeight + 'px';\r
- }\r
- else if (typeof(this.object.scrollHeight) == 'number')\r
- {\r
- height = this.object.scrollHeight + 'px';\r
- }\r
- }\r
-\r
- if (height.indexOf('px') == -1)\r
- {\r
- xbDEBUG.dump('xbStyle.getHeight: Element ID=' + this.object.id + ' does not use pixels as units. height=' + height + ' Click Ok to continue, Cancel to Abort');\r
- return 0;\r
- }\r
-\r
- height = xbToInt(height);\r
-\r
- return height;\r
-}\r
-\r
-// xbStyle.setHeight()\r
-\r
-function cssStyleSetHeight(height)\r
-{\r
- if (typeof(this.styleObj.height) == 'number')\r
- this.styleObj.height = height;\r
- else\r
- this.styleObj.height = height + 'px';\r
-}\r
-\r
-// xbStyle.getWidth()\r
-\r
-function cssStyleGetWidth()\r
-{\r
- var display = this.getEffectiveValue('display');\r
- var width = this.getEffectiveValue('width');\r
-\r
- if (typeof(width) == 'number')\r
- {\r
- // note Opera 6 has a bug in width and offsetWidth where \r
- // it returns the page width. Use clientWidth instead.\r
- if (navigator.userAgent.indexOf('Opera') != -1)\r
- return this.object.clientWidth;\r
- else\r
- return width;\r
- }\r
-\r
- if (width == '' || width == 'auto' || width.indexOf('%') != -1)\r
- {\r
- if (typeof(this.object.offsetWidth) == 'number')\r
- {\r
- width = this.object.offsetWidth + 'px';\r
- }\r
- else if (typeof(this.object.scrollHeight) == 'number')\r
- {\r
- width = this.object.scrollWidth + 'px';\r
- }\r
- }\r
-\r
- if (width.indexOf('px') == -1)\r
- {\r
- xbDEBUG.dump('xbStyle.getWidth: Element ID=' + this.object.id + ' does not use pixels as units. width=' + width + ' Click Ok to continue, Cancel to Abort');\r
- return 0;\r
- }\r
-\r
- width = xbToInt(width);\r
-\r
- return width;\r
-}\r
-\r
-// xbStyle.setWidth()\r
-\r
-function cssStyleSetWidth(width)\r
-{\r
- if (typeof(this.styleObj.width) == 'number')\r
- this.styleObj.width = width;\r
- else\r
- this.styleObj.width = width + 'px';\r
-}\r
-\r
-// xbStyle.getVisibility()\r
-\r
-function cssStyleGetVisibility()\r
-{\r
- return this.getEffectiveValue('visibility');\r
-}\r
-\r
-// xbStyle.setVisibility()\r
-\r
-function cssStyleSetVisibility(visibility)\r
-{\r
- this.styleObj.visibility = visibility;\r
-}\r
-\r
-// xbStyle.getzIndex()\r
-\r
-function cssStyleGetzIndex()\r
-{\r
- return xbToInt(this.getEffectiveValue('zIndex'));\r
-}\r
-\r
-// xbStyle.setzIndex()\r
-\r
-function cssStyleSetzIndex(zIndex)\r
-{\r
- this.styleObj.zIndex = zIndex;\r
-}\r
-\r
-// xbStyle.getBackgroundColor()\r
-\r
-function cssStyleGetBackgroundColor()\r
-{\r
- return this.getEffectiveValue('backgroundColor');\r
-}\r
-\r
-// xbStyle.setBackgroundColor()\r
-\r
-function cssStyleSetBackgroundColor(color)\r
-{\r
- this.styleObj.backgroundColor = color;\r
-}\r
-\r
-// xbStyle.getColor()\r
-\r
-function cssStyleGetColor()\r
-{\r
- return this.getEffectiveValue('color');\r
-}\r
-\r
-// xbStyle.setColor()\r
-\r
-function cssStyleSetColor(color)\r
-{\r
- this.styleObj.color = color;\r
-}\r
-\r
-// xbStyle.moveAbove()\r
-\r
-function xbStyleMoveAbove(cont)\r
-{\r
- this.setzIndex(cont.getzIndex()+1);\r
-}\r
-\r
-// xbStyle.moveBelow()\r
-\r
-function xbStyleMoveBelow(cont)\r
-{\r
- var zindex = cont.getzIndex() - 1;\r
- \r
- this.setzIndex(zindex);\r
-}\r
-\r
-// xbStyle.moveBy()\r
-\r
-function xbStyleMoveBy(deltaX, deltaY)\r
-{\r
- this.moveTo(this.getLeft() + deltaX, this.getTop() + deltaY);\r
-}\r
-\r
-// xbStyle.moveTo()\r
-\r
-function xbStyleMoveTo(x, y)\r
-{\r
- this.setLeft(x);\r
- this.setTop(y);\r
-}\r
-\r
-// xbStyle.moveToAbsolute()\r
-\r
-function xbStyleMoveToAbsolute(x, y)\r
-{\r
- this.setPageX(x);\r
- this.setPageY(y);\r
-}\r
-\r
-// xbStyle.resizeBy()\r
-\r
-function xbStyleResizeBy(deltaX, deltaY)\r
-{\r
- this.setWidth( this.getWidth() + deltaX );\r
- this.setHeight( this.getHeight() + deltaY );\r
-}\r
-\r
-// xbStyle.resizeTo()\r
-\r
-function xbStyleResizeTo(x, y)\r
-{\r
- this.setWidth(x);\r
- this.setHeight(y);\r
-}\r
-\r
-// xbStyle.setInnerHTML()\r
-\r
-function xbSetInnerHTML(str)\r
-{\r
- if (typeof(this.object.innerHTML) != 'undefined')\r
- this.object.innerHTML = str;\r
-}\r
-\r
-\r
-// Extensions to xbStyle that are not supported by Netscape Navigator 4\r
-// but that provide cross browser implementations of properties for \r
-// Mozilla, Gecko, Netscape 6.x and Opera\r
-\r
-// xbStyle.getBorderTopWidth()\r
-\r
-function cssStyleGetBorderTopWidth()\r
-{\r
- return xbToInt(this.getEffectiveValue('borderTopWidth'));\r
-}\r
-\r
-// xbStyle.getBorderRightWidth()\r
-\r
-function cssStyleGetBorderRightWidth()\r
-{\r
- return xbToInt(this.getEffectiveValue('borderRightWidth'));\r
-}\r
-\r
-// xbStyle.getBorderBottomWidth()\r
-\r
-function cssStyleGetBorderBottomWidth()\r
-{\r
- return xbToInt(this.getEffectiveValue('borderBottomWidth'));\r
-}\r
-\r
-// xbStyle.getBorderLeftWidth()\r
-\r
-function cssStyleGetBorderLeftWidth()\r
-{\r
- return xbToInt(this.getEffectiveValue('borderLeftWidth'));\r
-}\r
-\r
-// xbStyle.getMarginTop()\r
-\r
-function cssStyleGetMarginTop()\r
-{\r
- return xbToInt(this.getEffectiveValue('marginTop'));\r
-}\r
-\r
-// xbStyle.getMarginRight()\r
-\r
-function cssStyleGetMarginRight()\r
-{\r
- return xbToInt(this.getEffectiveValue('marginRight'));\r
-}\r
-\r
-// xbStyle.getMarginBottom()\r
-\r
-function cssStyleGetMarginBottom()\r
-{\r
- return xbToInt(this.getEffectiveValue('marginBottom'));\r
-}\r
-\r
-// xbStyle.getMarginLeft()\r
-\r
-function cssStyleGetMarginLeft()\r
-{\r
- return xbToInt(this.getEffectiveValue('marginLeft'));\r
-}\r
-\r
-// xbStyle.getPaddingTop()\r
-\r
-function cssStyleGetPaddingTop()\r
-{\r
- return xbToInt(this.getEffectiveValue('paddingTop'));\r
-}\r
-\r
-// xbStyle.getPaddingRight()\r
-\r
-function cssStyleGetPaddingRight()\r
-{\r
- return xbToInt(this.getEffectiveValue('paddingRight'));\r
-}\r
-\r
-// xbStyle.getPaddingBottom()\r
-\r
-function cssStyleGetPaddingBottom()\r
-{\r
- return xbToInt(this.getEffectiveValue('paddingBottom'));\r
-}\r
-\r
-// xbStyle.getPaddingLeft()\r
-\r
-function cssStyleGetPaddingLeft()\r
-{\r
- return xbToInt(this.getEffectiveValue('paddingLeft'));\r
-}\r
-\r
-// xbStyle.getClientWidth()\r
-\r
-function cssStyleGetClientWidth()\r
-{\r
- return this.getWidth() + this.getPaddingLeft() + this.getPaddingRight();\r
- /*\r
- if (typeof(this.object.clientWidth) == 'number')\r
- return this.object.clientWidth;\r
-\r
- return null;\r
- */\r
-}\r
-\r
-// xbStyle.getClientHeight()\r
-\r
-function cssStyleGetClientHeight()\r
-{\r
- return this.getHeight() + this.getPaddingTop() + this.getPaddingBottom();\r
- /*\r
- if (typeof(this.object.clientHeight) == 'number')\r
- return this.object.clientHeight;\r
-\r
- return null;\r
- */\r
-}\r
-\r
-xbStyle.prototype.getClip = cssStyleGetClip;\r
-xbStyle.prototype.setClip = cssStyleSetClip; \r
-xbStyle.prototype.getClipTop = cssStyleGetClipTop;\r
-xbStyle.prototype.setClipTop = cssStyleSetClipTop; \r
-xbStyle.prototype.getClipRight = cssStyleGetClipRight;\r
-xbStyle.prototype.setClipRight = cssStyleSetClipRight; \r
-xbStyle.prototype.getClipBottom = cssStyleGetClipBottom;\r
-xbStyle.prototype.setClipBottom = cssStyleSetClipBottom; \r
-xbStyle.prototype.getClipLeft = cssStyleGetClipLeft;\r
-xbStyle.prototype.setClipLeft = cssStyleSetClipLeft; \r
-xbStyle.prototype.getClipWidth = cssStyleGetClipWidth;\r
-xbStyle.prototype.setClipWidth = cssStyleSetClipWidth; \r
-xbStyle.prototype.getClipHeight = cssStyleGetClipHeight;\r
-xbStyle.prototype.setClipHeight = cssStyleSetClipHeight; \r
-xbStyle.prototype.getLeft = cssStyleGetLeft;\r
-xbStyle.prototype.setLeft = cssStyleSetLeft;\r
-xbStyle.prototype.getTop = cssStyleGetTop;\r
-xbStyle.prototype.setTop = cssStyleSetTop;\r
-xbStyle.prototype.getPageX = cssStyleGetPageX;\r
-xbStyle.prototype.setPageX = cssStyleSetPageX;\r
-xbStyle.prototype.getPageY = cssStyleGetPageY;\r
-xbStyle.prototype.setPageY = cssStyleSetPageY;\r
-xbStyle.prototype.getVisibility = cssStyleGetVisibility;\r
-xbStyle.prototype.setVisibility = cssStyleSetVisibility;\r
-xbStyle.prototype.getzIndex = cssStyleGetzIndex;\r
-xbStyle.prototype.setzIndex = cssStyleSetzIndex; \r
-xbStyle.prototype.getHeight = cssStyleGetHeight;\r
-xbStyle.prototype.setHeight = cssStyleSetHeight;\r
-xbStyle.prototype.getWidth = cssStyleGetWidth;\r
-xbStyle.prototype.setWidth = cssStyleSetWidth;\r
-xbStyle.prototype.getBackgroundColor = cssStyleGetBackgroundColor;\r
-xbStyle.prototype.setBackgroundColor = cssStyleSetBackgroundColor;\r
-xbStyle.prototype.getColor = cssStyleGetColor;\r
-xbStyle.prototype.setColor = cssStyleSetColor;\r
-xbStyle.prototype.setInnerHTML = xbSetInnerHTML;\r
-xbStyle.prototype.getBorderTopWidth = cssStyleGetBorderTopWidth;\r
-xbStyle.prototype.getBorderRightWidth = cssStyleGetBorderRightWidth;\r
-xbStyle.prototype.getBorderBottomWidth = cssStyleGetBorderBottomWidth;\r
-xbStyle.prototype.getBorderLeftWidth = cssStyleGetBorderLeftWidth;\r
-xbStyle.prototype.getMarginLeft = cssStyleGetMarginLeft;\r
-xbStyle.prototype.getMarginTop = cssStyleGetMarginTop;\r
-xbStyle.prototype.getMarginRight = cssStyleGetMarginRight;\r
-xbStyle.prototype.getMarginBottom = cssStyleGetMarginBottom;\r
-xbStyle.prototype.getMarginLeft = cssStyleGetMarginLeft;\r
-xbStyle.prototype.getPaddingTop = cssStyleGetPaddingTop;\r
-xbStyle.prototype.getPaddingRight = cssStyleGetPaddingRight;\r
-xbStyle.prototype.getPaddingBottom = cssStyleGetPaddingBottom;\r
-xbStyle.prototype.getPaddingLeft = cssStyleGetPaddingLeft;\r
-xbStyle.prototype.getClientWidth = cssStyleGetClientWidth;\r
-xbStyle.prototype.getClientHeight = cssStyleGetClientHeight;\r
-\r