2011-06-15 Abhishek Arya <inferno@chromium.org>
authorAbhishek Arya <inferno@chromium.org>
Thu, 16 Jun 2011 01:09:05 +0000 (01:09 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Tue, 21 Jun 2011 16:57:17 +0000 (13:57 -0300)
commit55c2361f5ddec83499e05059f1f945c823ef2bd5
tree47c0206b6f4b546e6fc5f018e95a726782fb12f6
parent8cee9cca9680149757d7982d3724314935786c21
2011-06-15  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Antti Koivisto.

        Tests that accessing the parent stylesheet in nodes (not in document)
        do not result in crash when document is cleared.
        https://bugs.webkit.org/show_bug.cgi?id=62586

        * fast/dom/body-clone-link-decl-parent-crash-expected.txt: Added.
        * fast/dom/body-clone-link-decl-parent-crash.html: Added.
        * fast/dom/styled-clone-inline-style-decl-parent-crash-expected.txt: Added.
        * fast/dom/styled-clone-inline-style-decl-parent-crash.html: Added.
        * fast/dom/styled-not-in-document-clone-inline-style-decl-parent-crash-expected.txt: Added.
        * fast/dom/styled-not-in-document-clone-inline-style-decl-parent-crash.html: Added.
2011-06-15  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Antti Koivisto.

        Revert speculative fix in r84151. It caused some issues with
        stylesheet lifetimes.
        https://bugs.webkit.org/show_bug.cgi?id=62586

        Tests: fast/dom/body-clone-link-decl-parent-crash.html
               fast/dom/styled-clone-inline-style-decl-parent-crash.html
               fast/dom/styled-not-in-document-clone-inline-style-decl-parent-crash.html

        * dom/Document.cpp:
        (WebCore::Document::removedLastRef):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@88987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/body-clone-link-decl-parent-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/body-clone-link-decl-parent-crash.html [new file with mode: 0644]
LayoutTests/fast/dom/styled-clone-inline-style-decl-parent-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/styled-clone-inline-style-decl-parent-crash.html [new file with mode: 0644]
LayoutTests/fast/dom/styled-not-in-document-clone-inline-style-decl-parent-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/styled-not-in-document-clone-inline-style-decl-parent-crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp