Bug 1249685 - Use more nsCOMPtrs for stack variables in DOM code. r=smaug

This commit is contained in:
Andrew McCreight
2016-02-23 16:23:43 -08:00
parent dac9f71d37
commit 8a89aeb600
4 changed files with 6 additions and 6 deletions

View File

@@ -577,7 +577,7 @@ HTMLSelectElement::Add(nsGenericHTMLElement& aElement,
// Just in case we're not the parent, get the parent of the reference
// element
nsINode* parent = aBefore->Element::GetParentNode();
nsCOMPtr<nsINode> parent = aBefore->Element::GetParentNode();
if (!parent || !nsContentUtils::ContentIsDescendantOf(parent, this)) {
// NOT_FOUND_ERR: Raised if before is not a descendant of the SELECT
// element.