2011-06-13 Ryosuke Niwa <rniwa@webkit.org>
authorRyosuke Niwa <rniwa@webkit.org>
Mon, 13 Jun 2011 20:46:24 +0000 (20:46 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Tue, 14 Jun 2011 14:33:23 +0000 (11:33 -0300)
commit8c92d0cf0201d8b3a4c7fbd77caef06cd4951aa6
tree3eef15dc718ec761c2199ef5505f80f36fed0702
parentf49c89c0c3fbffc68931a564916dc900f04861ea
2011-06-13  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Dan Bernstein.

        REGRESSION (r81518): Crash in makeRange() when invoking the dictionary panel over a file input
        https://bugs.webkit.org/show_bug.cgi?id=62544

        Fixed the crash by adding null pointer checks.

        No new tests since there's no way to open dictionary panel.

        * dom/Position.cpp:
        (WebCore::Position::parentAnchoredEquivalent):
        * editing/VisiblePosition.cpp:
        (WebCore::makeRange):
        * page/Frame.cpp:
        (WebCore::Frame::rangeForPoint):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@88685 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/Position.cpp
Source/WebCore/editing/VisiblePosition.cpp
Source/WebCore/page/Frame.cpp