mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 533636. Speed up IsSecurityWrapper. r=mrbkap
This commit is contained in:
parent
a6e863f1da
commit
8c7d101795
@ -221,10 +221,8 @@ public:
|
||||
static JSBool IsSecurityWrapper(JSObject *wrapper)
|
||||
{
|
||||
JSClass *clasp = STOBJ_GET_CLASS(wrapper);
|
||||
return clasp == &sXPC_COW_JSClass.base ||
|
||||
clasp == &sXPC_SJOW_JSClass.base ||
|
||||
clasp == &sXPC_SOW_JSClass.base ||
|
||||
clasp == &sXPC_XOW_JSClass.base;
|
||||
return (clasp->flags & JSCLASS_IS_EXTENDED) &&
|
||||
((JSExtendedClass*)clasp)->wrappedObject;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user