icecat: add release icecat-140.8.0-2 for aramo
This commit is contained in:
parent
d9a6c0aa96
commit
d570f39e11
616 changed files with 39955 additions and 33937 deletions
|
|
@ -258,6 +258,7 @@ nsresult nsHtml5TreeOperation::Append(nsIContent* aNode, nsIContent* aParent,
|
|||
nsHtml5DocumentBuilder* aBuilder) {
|
||||
MOZ_ASSERT(aBuilder);
|
||||
MOZ_ASSERT(aBuilder->IsInDocUpdate());
|
||||
MOZ_ASSERT(!aNode->GetParentNode());
|
||||
ErrorResult rv;
|
||||
Document* ownerDoc = aParent->OwnerDoc();
|
||||
nsHtml5OtherDocUpdate update(ownerDoc, aBuilder->GetDocument());
|
||||
|
|
@ -272,6 +273,13 @@ nsresult nsHtml5TreeOperation::Append(nsIContent* aNode, nsIContent* aParent,
|
|||
nsresult nsHtml5TreeOperation::Append(nsIContent* aNode, nsIContent* aParent,
|
||||
FromParser aFromParser,
|
||||
nsHtml5DocumentBuilder* aBuilder) {
|
||||
if (MOZ_UNLIKELY(aNode->GetParentNode())) {
|
||||
Detach(aNode, aBuilder);
|
||||
if (MOZ_UNLIKELY(aNode->GetParentNode())) {
|
||||
// Can this happen? If it can, give up.
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
Maybe<nsHtml5AutoPauseUpdate> autoPause;
|
||||
Maybe<AutoCEReaction> autoCEReaction;
|
||||
DocGroup* docGroup = aParent->OwnerDoc()->GetDocGroup();
|
||||
|
|
@ -294,6 +302,13 @@ nsresult nsHtml5TreeOperation::AppendToDocument(
|
|||
MOZ_ASSERT(aBuilder);
|
||||
MOZ_ASSERT(aBuilder->GetDocument() == aNode->OwnerDoc());
|
||||
MOZ_ASSERT(aBuilder->IsInDocUpdate());
|
||||
if (MOZ_UNLIKELY(aNode->GetParentNode())) {
|
||||
Detach(aNode, aBuilder);
|
||||
if (MOZ_UNLIKELY(aNode->GetParentNode())) {
|
||||
// Can this happen? If it can, give up.
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
ErrorResult rv;
|
||||
Document* doc = aBuilder->GetDocument();
|
||||
|
|
@ -377,6 +392,14 @@ nsresult nsHtml5TreeOperation::FosterParent(nsIContent* aNode,
|
|||
nsHtml5DocumentBuilder* aBuilder) {
|
||||
MOZ_ASSERT(aBuilder);
|
||||
MOZ_ASSERT(aBuilder->IsInDocUpdate());
|
||||
if (MOZ_UNLIKELY(aNode->GetParentNode())) {
|
||||
Detach(aNode, aBuilder);
|
||||
if (MOZ_UNLIKELY(aNode->GetParentNode())) {
|
||||
// Can this happen? If it can, give up.
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
nsIContent* foster = aTable->GetParent();
|
||||
|
||||
if (IsElementOrTemplateContent(foster)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue