OSDN Git Service

Version 0.6.57, fixed NS of X.UI & X.Class for __proto__.
[pettanr/clientJs.git] / 0.6.x / js / dom / 15_XDomStyle.js
index 2dbaa55..226c898 100644 (file)
@@ -1075,23 +1075,23 @@ X.Dom.Node.prototype.cssText = function( v ){
 X.Dom.Node.prototype._getCharSize =
        window.getComputedStyle ?
                (function(){
-                       Node.root._updateTimerID && Node.root._startUpdate();
-                       if( this === Node.root && X.Dom.baseFontSize ) return X.Dom.baseFontSize;
+                       Node._body._updateTimerID && Node._body._startUpdate();
+                       if( this === Node._body && X.Dom.baseFontSize ) return X.Dom.baseFontSize;
                        if( this._fontSize ) return this._fontSize;
                        return this._fontSize = parseFloat( getComputedStyle( this._rawNode, null ).fontSize );
                }) :
        document.defaultView && document.defaultView.getComputedStyle ?
                (function(){
-                       Node.root._updateTimerID && Node.root._startUpdate();
-                       if( this === Node.root && X.Dom.baseFontSize ) return X.Dom.baseFontSize;
+                       Node._body._updateTimerID && Node._body._startUpdate();
+                       if( this === Node._body && X.Dom.baseFontSize ) return X.Dom.baseFontSize;
                        if( this._fontSize ) return this._fontSize;
                        return this._fontSize = parseFloat( document.defaultView.getComputedStyle( this._rawNode, null ).fontSize );
                }) :
        X.UA.IE && 5.5 <= X.UA.IE ?
                (function(){
                        var font, vu, v, u, _v;
-                       Node.root._updateTimerID && Node.root._startUpdate();
-                       if( this === Node.root && X.Dom.baseFontSize ) return X.Dom.baseFontSize;
+                       Node._body._updateTimerID && Node._body._startUpdate();
+                       if( this === Node._body && X.Dom.baseFontSize ) return X.Dom.baseFontSize;
                        if( this._fontSize ) return this._fontSize;
                        
                        font = this._rawNode.currentStyle.fontSize;
@@ -1121,8 +1121,8 @@ X.Dom.Node.prototype._getCharSize =
        X.Dom.DOM_W3C ?
                (function(){
                        var elm, v;
-                       Node.root._updateTimerID && Node.root._startUpdate();
-                       if( this === Node.root && X.Dom.baseFontSize ) return X.Dom.baseFontSize;
+                       Node._body._updateTimerID && Node._body._startUpdate();
+                       if( this === Node._body && X.Dom.baseFontSize ) return X.Dom.baseFontSize;
                        if( this._fontSize ) return this._fontSize;
 
                        this._rawNode.appendChild( elm = document.createElement( 'span' ) );
@@ -1135,8 +1135,8 @@ X.Dom.Node.prototype._getCharSize =
        X.Dom.DOM_IE4 ?
                (function(){
                        var font, vu, v, u, _v;
-                       Node.root._updateTimerID && Node.root._startUpdate();
-                       if( this === Node.root && X.Dom.baseFontSize ) return X.Dom.baseFontSize;
+                       Node._body._updateTimerID && Node._body._startUpdate();
+                       if( this === Node._body && X.Dom.baseFontSize ) return X.Dom.baseFontSize;
                        if( this._fontSize ) return this._fontSize;
                        
                        if( this._css && ( font = this._css.fontSize ) ){
@@ -1169,8 +1169,8 @@ X.Dom.Node.prototype._getCharSize =
                }) :
                (function(){
                        var elm, v;
-                       if( this === Node.root && X.Dom.baseFontSize ) return X.Dom.baseFontSize;
-                       Node.root._updateTimerID && Node.root._startUpdate();
+                       if( this === Node._body && X.Dom.baseFontSize ) return X.Dom.baseFontSize;
+                       Node._body._updateTimerID && Node._body._startUpdate();
                        if( this._fontSize ) return this._fontSize;
                        
                        elm = this._rawNode || this._ie4getRawNode();