Reviewed by mjs
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Oct 2006 19:01:33 +0000 (19:01 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Oct 2006 19:01:33 +0000 (19:01 +0000)
commit78074af1b6fb31eb49076a3d65d97cd38d90d4ea
treea4510b45fdd29ed71af6c594708580eb01d9081e
parent58c335eb18e0187b1533c3129b2e4978753712dd
    Reviewed by mjs

        <rdar://problem/4760612>
        TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints

        No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.

        * dom/Range.cpp:
        (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming
        positions are non-null since most of it's callers would be in a bad state if the positions
        were null.  boundaryPointsValid, which calls compareBoundaryPoints, is an exception.
        Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it
        from entering compareBoundaryPoints and hitting the assert.

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