From 0f5b789157547128694bd41061f2e9631bc1061f Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 17 Apr 2020 07:39:08 -0400 Subject: Bug 1348481 - Part 1b: Generalize FindDocStyleSheetInsertionPoint so it doesn't require an array of RefPtrs Tag #1375 --- dom/base/nsIDocument.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dom/base/nsIDocument.h') diff --git a/dom/base/nsIDocument.h b/dom/base/nsIDocument.h index 297a207fc..5ccb18f78 100644 --- a/dom/base/nsIDocument.h +++ b/dom/base/nsIDocument.h @@ -1153,11 +1153,13 @@ public: * sheets for this document, returns the index that aSheet should * be inserted at to maintain document ordering. * + * Type T has to cast to StyleSheet*. + * * Defined in nsIDocumentInlines.h. */ template - size_t FindDocStyleSheetInsertionPoint(const nsTArray>& aDocSheets, - T* aSheet); + size_t FindDocStyleSheetInsertionPoint(const nsTArray& aDocSheets, + mozilla::StyleSheet* aSheet); /** * Get this document's CSSLoader. This is guaranteed to not return null. -- cgit v1.2.3