Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout

This commit is contained in:
Sebastian Hengst
2017-08-11 10:48:10 +02:00
parent 3a324ed193
commit b20f04d43a
39 changed files with 1353 additions and 3443 deletions

View File

@@ -42,7 +42,6 @@
#include "nsHtml5Macros.h"
#include "nsIContentHandle.h"
#include "nsHtml5Portability.h"
#include "nsHtml5ContentCreatorFunction.h"
#include "nsHtml5AttributeName.h"
#include "nsHtml5ElementName.h"
@@ -92,21 +91,13 @@ nsHtml5StackNode::nsHtml5StackNode(int32_t idxInTreeBuilder)
MOZ_COUNT_CTOR(nsHtml5StackNode);
}
mozilla::dom::HTMLContentCreatorFunction
nsHtml5StackNode::getHtmlCreator()
{
return htmlCreator;
}
void
nsHtml5StackNode::setValues(
int32_t flags,
int32_t ns,
nsIAtom* name,
nsIContentHandle* node,
nsIAtom* popName,
nsHtml5HtmlAttributes* attributes,
mozilla::dom::HTMLContentCreatorFunction htmlCreator)
nsHtml5StackNode::setValues(int32_t flags,
int32_t ns,
nsIAtom* name,
nsIContentHandle* node,
nsIAtom* popName,
nsHtml5HtmlAttributes* attributes)
{
MOZ_ASSERT(isUnused());
this->flags = flags;
@@ -116,7 +107,6 @@ nsHtml5StackNode::setValues(
this->node = node;
this->attributes = attributes;
this->refcount = 1;
this->htmlCreator = htmlCreator;
}
void
@@ -133,7 +123,6 @@ nsHtml5StackNode::setValues(nsHtml5ElementName* elementName,
this->refcount = 1;
MOZ_ASSERT(elementName->isInterned(),
"Don't use this constructor for custom elements.");
this->htmlCreator = nullptr;
}
void
@@ -151,7 +140,6 @@ nsHtml5StackNode::setValues(nsHtml5ElementName* elementName,
this->refcount = 1;
MOZ_ASSERT(elementName->isInterned(),
"Don't use this constructor for custom elements.");
this->htmlCreator = elementName->getHtmlCreator();
}
void
@@ -167,7 +155,6 @@ nsHtml5StackNode::setValues(nsHtml5ElementName* elementName,
this->node = node;
this->attributes = nullptr;
this->refcount = 1;
this->htmlCreator = nullptr;
}
void
@@ -183,7 +170,6 @@ nsHtml5StackNode::setValues(nsHtml5ElementName* elementName,
this->node = node;
this->attributes = nullptr;
this->refcount = 1;
this->htmlCreator = nullptr;
}
void
@@ -201,7 +187,6 @@ nsHtml5StackNode::setValues(nsHtml5ElementName* elementName,
this->node = node;
this->attributes = nullptr;
this->refcount = 1;
this->htmlCreator = nullptr;
}
int32_t