-
antti@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=75676 Reviewed by Andreas Kling. Based on the stacks, CSSStyleSelector may be getting deleted from under the CSSStyleSelector::appendAuthorStylesheets call. Protect by temporarily detaching from the document. Also add assertions to catch the case. No test, there is no known repro and the fix is speculative. * dom/Document.cpp: (WebCore::Document::Document): (WebCore::Document::setDocType): (WebCore::Document::childrenChanged): (WebCore::Document::clearStyleSelector): (WebCore::Document::updateActiveStylesheets): * dom/Document.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104458 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3f4f37b9