Backport crash fix by Huzaifa Sidhpurwala <huzaifas@redhat.com>
authorHuzaifa Sidhpurwala <huzaifas@redhat.com>
Tue, 1 Feb 2011 07:52:02 +0000 (13:22 +0530)
committerHuzaifa Sidhpurwala <huzaifas@redhat.com>
Tue, 1 Feb 2011 07:52:02 +0000 (13:22 +0530)
commit3c4b78b3968ca4e68ac74bac52332e55bcf415b5
tree44546d119a5b23e21b90fdb71af8ff8dedc43187
parent99db4f5dd550a6b79359baaf6fade33d3505ea32
Backport crash fix by Huzaifa Sidhpurwala <huzaifas@redhat.com>
Test case has been modified to suit the WebKit version

    2010-10-27  Abhishek Arya  <inferno@chromium.org>

            Reviewed by Dave Hyatt.

            Add a function to make sure child is allowed before adding to a
            render view.
            https://bugs.webkit.org/show_bug.cgi?id=48328

            Test: fast/inline/inline-child-height-width-calc-crash.html

            * rendering/RenderView.cpp:
            (WebCore::RenderView::isChildAllowed):
            * rendering/RenderView.h:
    2010-10-27  Abhishek Arya  <inferno@chromium.org>

            Reviewed by Dave Hyatt.

            Tests that adding a br element to a new document does not result in crash.
            https://bugs.webkit.org/show_bug.cgi?id=48328

            * fast/inline/inline-child-height-width-calc-crash-expected.txt: Added.
            * fast/inline/inline-child-height-width-calc-crash.html: Added.

    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/fast/inline/inline-child-height-width-calc-crash-modified-expected.txt [new file with mode: 0644]
LayoutTests/fast/inline/inline-child-height-width-calc-crash-modified.xhtml [new file with mode: 0644]
WebCore/rendering/RenderView.cpp
WebCore/rendering/RenderView.h