From aa7bd960bb42f1566d81115d4d3900024c542849 Mon Sep 17 00:00:00 2001 From: Kyle Huey Date: Fri, 23 Mar 2012 07:44:06 -0700 Subject: [PATCH] Bug 737875. r=hsivonen --- parser/html/nsHtml5TreeOpExecutor.cpp | 2 +- parser/html/nsHtml5TreeOpExecutor.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/parser/html/nsHtml5TreeOpExecutor.cpp b/parser/html/nsHtml5TreeOpExecutor.cpp index fe18bd35cdf9..44f74bf166a3 100644 --- a/parser/html/nsHtml5TreeOpExecutor.cpp +++ b/parser/html/nsHtml5TreeOpExecutor.cpp @@ -75,7 +75,7 @@ NS_IMPL_ADDREF_INHERITED(nsHtml5TreeOpExecutor, nsContentSink) NS_IMPL_RELEASE_INHERITED(nsHtml5TreeOpExecutor, nsContentSink) NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(nsHtml5TreeOpExecutor, nsContentSink) - NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMARRAY(mOwnedElements) + NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSTARRAY_OF_NSCOMPTR(mOwnedElements) NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(nsHtml5TreeOpExecutor, nsContentSink) diff --git a/parser/html/nsHtml5TreeOpExecutor.h b/parser/html/nsHtml5TreeOpExecutor.h index 29ddcb362e9e..70f8a5ee51c3 100644 --- a/parser/html/nsHtml5TreeOpExecutor.h +++ b/parser/html/nsHtml5TreeOpExecutor.h @@ -53,7 +53,6 @@ #include "nsHtml5DocumentMode.h" #include "nsIScriptElement.h" #include "nsIParser.h" -#include "nsCOMArray.h" #include "nsAHtml5TreeOpSink.h" #include "nsHtml5TreeOpStage.h" #include "nsIURI.h" @@ -104,7 +103,7 @@ class nsHtml5TreeOpExecutor : public nsContentSink, nsTArray mElementsSeenInThisAppendBatch; nsTArray mPendingNotifications; nsHtml5StreamParser* mStreamParser; - nsCOMArray mOwnedElements; + nsTArray > mOwnedElements; /** * URLs already preloaded/preloading. @@ -393,7 +392,7 @@ class nsHtml5TreeOpExecutor : public nsContentSink, void Reset(); inline void HoldElement(nsIContent* aContent) { - mOwnedElements.AppendObject(aContent); + mOwnedElements.AppendElement(aContent); } void DropHeldElements();