Bug Tracker

Ticket #2802: ticket2802_safari_curCSS.diff

File ticket2802_safari_curCSS.diff, 0.7 kB (added by ebartels, 8 months ago)
  • src/core.js

    a b  
    830830                return false; 
    831831             
    832832            // getComputedStyle is cached 
    833             var ret = getComputedStyle( elem, null ); 
     833            var ret = document.defaultView.getComputedStyle( elem, null ); 
    834834            return !ret || ret.getPropertyValue("color") == ""; 
    835835        } 
    836836 
     
    864864 
    865865            name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); 
    866866 
    867             var computedStyle = getComputedStyle( elem, null ); 
     867            var computedStyle = document.defaultView.getComputedStyle( elem, null ); 
    868868 
    869869            if ( computedStyle && !color( elem ) ) 
    870870                ret = computedStyle.getPropertyValue( name );