Bug 904826 - Remove some unneeded nsLayoutStatics calls. r=smaug,bholley,bz

This commit is contained in:
Andrew McCreight
2013-08-27 15:39:02 -07:00
parent a109eadbb9
commit 9af4a9cb8a
18 changed files with 13 additions and 54 deletions

View File

@@ -116,7 +116,6 @@
#include "nsCycleCollector.h"
#include "xpcpublic.h"
#include "nsIScriptError.h"
#include "nsLayoutStatics.h"
#include "mozilla/Telemetry.h"
#include "mozilla/CORSMode.h"
@@ -1041,21 +1040,19 @@ 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();