Ticket #8053: 8053_2.patch

File 8053_2.patch, 749 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                                        // Webkit: offline element returns empty direction (#8053).
     1601                                        || this.getDirection()
     1602                                        || this.getDocument().$.dir
     1603                                        || this.getDocument().getBody().getDirection( 1 )
     1604                                : this.getStyle( 'direction' ) || this.getAttribute( 'dir' );
    15991605                },
    16001606
    16011607                /**
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy