Skip to content
  • justing's avatar
    LayoutTests: · 67027a94
    justing authored
            Reviewed by harrison
    
            <rdar://problem/5119244> 
            Crash when indenting a selected ToDo
            
            * editing/execCommand/5119244-expected.checksum: Added.
            * editing/execCommand/5119244-expected.png: Added.
            * editing/execCommand/5119244-expected.txt: Added.
            * editing/execCommand/5119244.html: Added.
    
    WebCore:
    
            Reviewed by harrison
    
            <rdar://problem/5119244> 
            Crash when indenting a selected ToDo
            
            indentRegion() was using the old (incorrect) editable root 
            getter, which returned null for a valid, editable position, 
            causing the crash.
    
            * editing/IndentOutdentCommand.cpp:
            (WebCore::IndentOutdentCommand::indentRegion):
            The editable root for a position is editableRootForPosition(p),
            not p.node()->rootEditableElement(), because of VisiblePositions 
            before/after tables, replaced elements and others.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    67027a94