Bug 1525145, remove harmless assertions by using IgnoredErrorResult, r=peterv
This commit is contained in:
@@ -589,11 +589,10 @@ already_AddRefed<nsGenericHTMLElement> HTMLTableElement::CreateTHead() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HTMLTableElement::DeleteTHead() {
|
void HTMLTableElement::DeleteTHead() {
|
||||||
HTMLTableSectionElement* tHead = GetTHead();
|
RefPtr<HTMLTableSectionElement> tHead = GetTHead();
|
||||||
if (tHead) {
|
if (tHead) {
|
||||||
mozilla::ErrorResult rv;
|
mozilla::IgnoredErrorResult rv;
|
||||||
nsINode::RemoveChild(*tHead, rv);
|
nsINode::RemoveChild(*tHead, rv);
|
||||||
MOZ_ASSERT(!rv.Failed());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -616,11 +615,10 @@ already_AddRefed<nsGenericHTMLElement> HTMLTableElement::CreateTFoot() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HTMLTableElement::DeleteTFoot() {
|
void HTMLTableElement::DeleteTFoot() {
|
||||||
HTMLTableSectionElement* tFoot = GetTFoot();
|
RefPtr<HTMLTableSectionElement> tFoot = GetTFoot();
|
||||||
if (tFoot) {
|
if (tFoot) {
|
||||||
mozilla::ErrorResult rv;
|
mozilla::IgnoredErrorResult rv;
|
||||||
nsINode::RemoveChild(*tFoot, rv);
|
nsINode::RemoveChild(*tFoot, rv);
|
||||||
MOZ_ASSERT(!rv.Failed());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -644,11 +642,10 @@ already_AddRefed<nsGenericHTMLElement> HTMLTableElement::CreateCaption() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HTMLTableElement::DeleteCaption() {
|
void HTMLTableElement::DeleteCaption() {
|
||||||
HTMLTableCaptionElement* caption = GetCaption();
|
RefPtr<HTMLTableCaptionElement> caption = GetCaption();
|
||||||
if (caption) {
|
if (caption) {
|
||||||
mozilla::ErrorResult rv;
|
mozilla::IgnoredErrorResult rv;
|
||||||
nsINode::RemoveChild(*caption, rv);
|
nsINode::RemoveChild(*caption, rv);
|
||||||
MOZ_ASSERT(!rv.Failed());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ void HTMLTableSectionElement::DeleteRow(int32_t aValue, ErrorResult& aError) {
|
|||||||
refIndex = (uint32_t)aValue;
|
refIndex = (uint32_t)aValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
nsINode* row = rows->Item(refIndex);
|
nsCOMPtr<nsINode> row = rows->Item(refIndex);
|
||||||
if (!row) {
|
if (!row) {
|
||||||
aError.Throw(NS_ERROR_DOM_INDEX_SIZE_ERR);
|
aError.Throw(NS_ERROR_DOM_INDEX_SIZE_ERR);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user