Skip to content
  • eric@webkit.org's avatar
    2010-01-27 Tony Chang <tony@chromium.org> · 1d23c496
    eric@webkit.org authored
            Reviewed by Eric Seidel.
    
            Fix a crash when trying to indent a block element that was contained
            in a list.  This was happening because enclosingBlock() in
            htmlediting.cpp can return the current the same Node when a block
            element (like an <hr> or a <table>) is passed in.  This causes
            the indent command to think that it is not in a list item.
    
            Work around this by checking to see if enclosingBlock returned the
            same Node.
    
            https://bugs.webkit.org/show_bug.cgi?id=32390
    
            * editing/execCommand/indent-block-in-list-expected.txt: Added.
            * editing/execCommand/indent-block-in-list.html: Added.
    2010-01-27  Tony Chang  <tony@chromium.org>
    
            Reviewed by Eric Seidel.
    
            Fix a crash when trying to indent a block element that was contained
            in a list.  This was happening because enclosingBlock() in
            htmlediting.cpp can return the current the same Node when a block
            element (like an <hr> or a <table>) is passed in.  This causes
            the indent command to think that it is not in a list item.
    
            Work around this by checking to see if enclosingBlock returned the
            same Node.
    
            https://bugs.webkit.org/show_bug.cgi?id=32390
    
            Test: editing/execCommand/indent-block-in-list.html
    
            * editing/IndentOutdentCommand.cpp:
            (WebCore::IndentOutdentCommand::tryIndentingAsListItem):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1d23c496