OSDN Git Service

Version 0.6.58, X.UI.HBox is working.
[pettanr/clientJs.git] / 0.6.x / js / dom / 15_XDomStyle.js
index 62f57fd..226c898 100644 (file)
@@ -134,7 +134,7 @@ _GRNERAL
        },
        
        IE_FILTER_FIX :
-               X.UA.IE && X.UA.IE < 9 ?
+               X.UA.IE && X.UA.IE < 9 && !X.UA.MacIE ?
                        {
                                opacity : 1,
                                textShadow : 1
@@ -873,7 +873,7 @@ X.Dom.Style._GET_VALUE_WITH_UNIT = {
        
 X.Dom.Style.SPECIAL_FIX =
        // ~IE8
-       X.UA.IE && X.UA.IE < 9 ?
+       X.UA.IE && X.UA.IE < 9 && !X.UA.MacIE?
                (function( obj ){
                        var test    = X.Dom.Style.SPECIAL_FIX_PROP,
                                filters = [],
@@ -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();
@@ -1220,7 +1220,7 @@ X.Dom.listenOnce( X.Dom.Event.DOM_PRE_INIT, function(){
        
        X.Dom.Style.SPECIAL_FIX_PROP =
                // ~IE8
-               X.UA.IE && X.UA.IE < 9 ?
+               X.UA.IE && X.UA.IE < 9 && !X.UA.MacIE ?
                        {
                                filter          : 1,
                                opacity         : 2//, uinode ChromeNode で行う