зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1184400, part 3 - Use HasExternalReference in XPCWrappedNative::Traverse. r=bholley
This is just for consistency.
This commit is contained in:
Родитель
52b10c8714
Коммит
7102f1c26b
|
@ -68,7 +68,7 @@ NS_CYCLE_COLLECTION_CLASSNAME(XPCWrappedNative)::Traverse
|
|||
NS_IMPL_CYCLE_COLLECTION_DESCRIBE(XPCWrappedNative, tmp->mRefCnt.get())
|
||||
}
|
||||
|
||||
if (tmp->mRefCnt.get() > 1) {
|
||||
if (tmp->HasExternalReference()) {
|
||||
|
||||
// If our refcount is > 1, our reference to the flat JS object is
|
||||
// considered "strong", and we're going to traverse it.
|
||||
|
|
Загрузка…
Ссылка в новой задаче