Backed out changeset 365053e73efa for build bustage on this CLOSED TREE.

This commit is contained in:
Andrew McCreight
2013-08-27 09:54:01 -07:00
parent f930d02918
commit 251902e99a
17 changed files with 54 additions and 12 deletions

View File

@@ -116,6 +116,7 @@
#include "nsCycleCollector.h"
#include "xpcpublic.h"
#include "nsIScriptError.h"
#include "nsLayoutStatics.h"
#include "mozilla/Telemetry.h"
#include "mozilla/CORSMode.h"
@@ -1040,19 +1041,21 @@ class ContentUnbinder : public nsRunnable
public:
ContentUnbinder()
{
nsLayoutStatics::AddRef();
mLast = this;
}
~ContentUnbinder()
{
Run();
nsLayoutStatics::Release();
}
void UnbindSubtree(nsIContent* aNode)
{
if (aNode->NodeType() != nsIDOMNode::ELEMENT_NODE &&
aNode->NodeType() != nsIDOMNode::DOCUMENT_FRAGMENT_NODE) {
return;
return;
}
FragmentOrElement* container = static_cast<FragmentOrElement*>(aNode);
uint32_t childCount = container->mAttrsAndChildren.ChildCount();