Assertion failure at TreeScopeAdopter::moveNodeToNewDocument()
authormorrita@google.com <morrita@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Oct 2012 07:08:58 +0000 (07:08 +0000)
committermorrita@google.com <morrita@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Oct 2012 07:08:58 +0000 (07:08 +0000)
commit57394edf3db3ff18707c213182201dfe9987cb49
treed2285cd5c4c27e6b85ccb3fb9b3b00787eb460b7
parent0aa30f0499a28e884609dea6cc37a5ba600792ec
Assertion failure at TreeScopeAdopter::moveNodeToNewDocument()
https://bugs.webkit.org/show_bug.cgi?id=99510

Reviewed by Kent Tamura.

Source/WebCore:

Shadow DOM notification call didn't have checks for mutation detection.
This change adds such checks.

Test: fast/forms/textarea/textarea-autofocus-removal-while-focusing-with-style.html

* dom/ContainerNodeAlgorithms.cpp:
(WebCore::ChildNodeInsertionNotifier::notifyDescendantInsertedIntoDocument):
(WebCore::ChildNodeRemovalNotifier::notifyDescendantRemovedFromDocument):

LayoutTests:

* fast/forms/textarea/textarea-autofocus-removal-while-focusing-with-style-expected.txt: Added.
* fast/forms/textarea/textarea-autofocus-removal-while-focusing-with-style.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@131709 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/textarea/textarea-autofocus-removal-while-focusing-with-style-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/textarea/textarea-autofocus-removal-while-focusing-with-style.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/dom/ContainerNodeAlgorithms.cpp