From c8d15b9a9c4b4455db059a34aa7f15e29b59d744 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Fri, 3 Mar 2017 17:22:15 +1100 Subject: [PATCH] Bug 1344133 - Add simple replace for nsCOMArray. r=bholley MozReview-Commit-ID: 7zTi45CeWBC --HG-- extra : rebase_source : 8e173e94239145c991c7e86d17ceadd9bb34eef0 --- layout/style/nsStyleStruct.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/layout/style/nsStyleStruct.h b/layout/style/nsStyleStruct.h index f25d94f16b2e..83dfa696e26b 100644 --- a/layout/style/nsStyleStruct.h +++ b/layout/style/nsStyleStruct.h @@ -4078,4 +4078,21 @@ STATIC_ASSERT_TYPE_LAYOUTS_MATCH(nsTArray, STATIC_ASSERT_TYPE_LAYOUTS_MATCH(nsTArray, nsTArray_Simple); +/** + *
+ * + * mozilla::ArrayIterator doesn't work well with bindgen. + */ +template +class nsCOMArray_Simple { + nsTArray mBuffer; +}; + +STATIC_ASSERT_TYPE_LAYOUTS_MATCH(nsCOMArray, + nsCOMArray_Simple); +STATIC_ASSERT_TYPE_LAYOUTS_MATCH(nsCOMArray, + nsCOMArray_Simple); +STATIC_ASSERT_TYPE_LAYOUTS_MATCH(nsCOMArray, + nsCOMArray_Simple); + #endif /* nsStyleStruct_h___ */