Skip to content
  • morrita@google.com's avatar
    2010-05-20 MORITA Hajime <morrita@google.com> · 034e133e
    morrita@google.com authored
            Reviewed by Kent Tamura.
    
            2x execCommand ReadAV@NULL
            https://bugs.webkit.org/show_bug.cgi?id=35791
    
            This test passes if it doesn't crash.
    
            * editing/execCommand/35791-expected.txt: Added.
            * editing/execCommand/35791.html: Added.
    2010-05-20  MORITA Hajime  <morrita@google.com>
    
            Reviewed by Kent Tamura.
    
            2x execCommand ReadAV@NULL
            https://bugs.webkit.org/show_bug.cgi?id=35791
    
            In applyBlockStyle(), a node which is referred from
            nextParagraphStart sometimes removed from the document and goes
            orphan, and that causes an assertion failed. This is because
            moveParagraphs() replaces the node with a new one with some new
            styles applied. So we re-compute nextParagraphStart in that case.
    
            Test: editing/execCommand/35791.html
    
            * dom/Position.h:
            (WebCore::Position::isOrphan):
            * editing/ApplyStyleCommand.cpp:
            (WebCore::ApplyStyleCommand::applyBlockStyle):
            * editing/VisiblePosition.h:
            (WebCore::VisiblePosition::isOrphan):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    034e133e