summaryrefslogtreecommitdiffstats
path: root/dom/base/nsIDocument.h
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 07:39:08 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 07:39:08 -0400
commit0f5b789157547128694bd41061f2e9631bc1061f (patch)
tree490f97520ce8f7f957f2ab1c3fd0e6aa9662c5cf /dom/base/nsIDocument.h
parentf605c68f1369935026e38ad2f535608f06d50d73 (diff)
downloadUXP-0f5b789157547128694bd41061f2e9631bc1061f.tar
UXP-0f5b789157547128694bd41061f2e9631bc1061f.tar.gz
UXP-0f5b789157547128694bd41061f2e9631bc1061f.tar.lz
UXP-0f5b789157547128694bd41061f2e9631bc1061f.tar.xz
UXP-0f5b789157547128694bd41061f2e9631bc1061f.zip
Bug 1348481 - Part 1b: Generalize FindDocStyleSheetInsertionPoint so it doesn't require an array of RefPtrs
Tag #1375
Diffstat (limited to 'dom/base/nsIDocument.h')
-rw-r--r--dom/base/nsIDocument.h6
1 files changed, 4 insertions, 2 deletions
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<typename T>
- size_t FindDocStyleSheetInsertionPoint(const nsTArray<RefPtr<T>>& aDocSheets,
- T* aSheet);
+ size_t FindDocStyleSheetInsertionPoint(const nsTArray<T>& aDocSheets,
+ mozilla::StyleSheet* aSheet);
/**
* Get this document's CSSLoader. This is guaranteed to not return null.