Fix inconsistent frame detach behavior of ContainerNode::parserRemoveChild.
Before this CL, ContainerNode::parserRemoveChild didn't detach descendent
<frame>s like ContainerNode::removeChild did.
ContainerNode::parserRemoveChild is called from document parsers for reparenting,
and this may leave the <frame>s in broken state.
This CL fixes the issue by issuing ChildFrameDisconnector from parserRemoveChild.
Node::updateAncestorConnectedSubframeCountForRemoval is removed,
as the decrement is now issued from HTMLFrameOwnerElement::clearContentFrame
called from fromChildFrameDisconnector.
Rebaselined:
fast/parser/adoption-agency-crash-01.html
fast/parser/adoption-agency-crash-03.html
- The iframes parser removed shouldn't be invoked onload handler anyway.
BUG=456518
Review URL: https://codereview.chromium.org/948793003
git-svn-id: svn://svn.chromium.org/blink/trunk@190980 bbb929c8-8fbe-4397-9dbb-9b2b20218538