Reviewed by john
authorkmccullo <kmccullo@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Dec 2006 02:24:59 +0000 (02:24 +0000)
committerkmccullo <kmccullo@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Dec 2006 02:24:59 +0000 (02:24 +0000)
commit5a6cb8d11bf95fb7cdf5844229ab3b5b1aefddb0
tree8c7fe4d42f541717355ee34d52e217c1289a949e
parentb135cae8a9c8183d5e8fd181799d6fac387f1da2
    Reviewed by john

        <rdar://problem/4854869>
        Inserting a new line in a contenteditable=true SPAN whose parent is a DIV asserts

        * editing/htmlediting.cpp:
        (WebCore::enclosingBlock): Use enclosingNodeWithType to prevent escape
        from editable content.
        * editing/markup.cpp:
        (WebCore::createMarkup): A null commonAncestorBlock will happen
        if commonAncestor is inside an inline editable root that doesn't
        contain any blocks.  Removed an early return for this case: the
        code below the early return can and must handle it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog