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() {
|
||||
HTMLTableSectionElement* tHead = GetTHead();
|
||||
RefPtr<HTMLTableSectionElement> tHead = GetTHead();
|
||||
if (tHead) {
|
||||
mozilla::ErrorResult rv;
|
||||
mozilla::IgnoredErrorResult rv;
|
||||
nsINode::RemoveChild(*tHead, rv);
|
||||
MOZ_ASSERT(!rv.Failed());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -616,11 +615,10 @@ already_AddRefed<nsGenericHTMLElement> HTMLTableElement::CreateTFoot() {
|
||||
}
|
||||
|
||||
void HTMLTableElement::DeleteTFoot() {
|
||||
HTMLTableSectionElement* tFoot = GetTFoot();
|
||||
RefPtr<HTMLTableSectionElement> tFoot = GetTFoot();
|
||||
if (tFoot) {
|
||||
mozilla::ErrorResult rv;
|
||||
mozilla::IgnoredErrorResult rv;
|
||||
nsINode::RemoveChild(*tFoot, rv);
|
||||
MOZ_ASSERT(!rv.Failed());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -644,11 +642,10 @@ already_AddRefed<nsGenericHTMLElement> HTMLTableElement::CreateCaption() {
|
||||
}
|
||||
|
||||
void HTMLTableElement::DeleteCaption() {
|
||||
HTMLTableCaptionElement* caption = GetCaption();
|
||||
RefPtr<HTMLTableCaptionElement> caption = GetCaption();
|
||||
if (caption) {
|
||||
mozilla::ErrorResult rv;
|
||||
mozilla::IgnoredErrorResult rv;
|
||||
nsINode::RemoveChild(*caption, rv);
|
||||
MOZ_ASSERT(!rv.Failed());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user