Ticket #8053: 8053.patch

File 8053.patch, 713 bytes (added by Garry Yao, 12 years ago)
  • _source/core/dom/element.js

     
    15951595                 */
    15961596                getDirection : function( useComputed )
    15971597                {
    1598                         return useComputed ? this.getComputedStyle( 'direction' ) : this.getStyle( 'direction' ) || this.getAttribute( 'dir' );
     1598                        return useComputed ?
     1599                                this.getComputedStyle( 'direction' )
     1600                                        || this.getDocument().$.dir
     1601                                        || this.getDocument().getBody().getDirection( 1 )       // Webkit: offline element returns empty direction (#8053).
     1602                                : this.getStyle( 'direction' ) || this.getAttribute( 'dir' );
    15991603                },
    16001604
    16011605                /**
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy