зеркало из https://github.com/mozilla/gecko-dev.git
fix for PDT+, topembed, nsbranch+ bug 78857, an assertion caused by the event pool code. r=heikki, sr=jst
This commit is contained in:
Родитель
5dacb7b001
Коммит
12bce05c13
|
@ -76,8 +76,10 @@ static char* mEventNames[] = {
|
|||
"DOMAttrModified", "DOMCharacterDataModified"
|
||||
};
|
||||
|
||||
/** event pool used as a simple recycler for objects of this class */
|
||||
static PRUint8 gEventPool[ sizeof(nsDOMEvent) ];
|
||||
|
||||
/* declare static class data */
|
||||
nsDOMEvent nsDOMEvent::gEventPool;
|
||||
PRBool nsDOMEvent::gEventPoolInUse=PR_FALSE;
|
||||
|
||||
#ifdef NS_DEBUG // metrics for measuring event pool use
|
||||
|
|
|
@ -223,9 +223,6 @@ protected:
|
|||
|
||||
nsDOMEvent() {}; // private constructor for pool, not for general use
|
||||
|
||||
/** event pool used as a simple recycler for objects of this class */
|
||||
static nsDOMEvent gEventPool;
|
||||
|
||||
/** bit to say whether the event pool is in use or not.
|
||||
* note that it would be trivial to make this a bitmap if we ever
|
||||
* wanted to increase the size of the pool from one. But with our
|
||||
|
|
Загрузка…
Ссылка в новой задаче