зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1344133 - Add simple replace for nsCOMArray. r=bholley
MozReview-Commit-ID: 7zTi45CeWBC --HG-- extra : rebase_source : 8e173e94239145c991c7e86d17ceadd9bb34eef0
This commit is contained in:
Родитель
17aa844cc0
Коммит
c8d15b9a9c
|
@ -4078,4 +4078,21 @@ STATIC_ASSERT_TYPE_LAYOUTS_MATCH(nsTArray<mozilla::StyleTransition>,
|
|||
STATIC_ASSERT_TYPE_LAYOUTS_MATCH(nsTArray<mozilla::StyleAnimation>,
|
||||
nsTArray_Simple<mozilla::StyleAnimation>);
|
||||
|
||||
/**
|
||||
* <div rustbindgen replaces="nsCOMArray"></div>
|
||||
*
|
||||
* mozilla::ArrayIterator doesn't work well with bindgen.
|
||||
*/
|
||||
template<typename T>
|
||||
class nsCOMArray_Simple {
|
||||
nsTArray<nsISupports*> mBuffer;
|
||||
};
|
||||
|
||||
STATIC_ASSERT_TYPE_LAYOUTS_MATCH(nsCOMArray<nsIContent>,
|
||||
nsCOMArray_Simple<nsIContent>);
|
||||
STATIC_ASSERT_TYPE_LAYOUTS_MATCH(nsCOMArray<nsINode>,
|
||||
nsCOMArray_Simple<nsINode>);
|
||||
STATIC_ASSERT_TYPE_LAYOUTS_MATCH(nsCOMArray<imgIContainer>,
|
||||
nsCOMArray_Simple<imgIContainer>);
|
||||
|
||||
#endif /* nsStyleStruct_h___ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче