зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1653000 - Declare WindowGlobalInit and SyncedContextInitializer uncomparable and remove unused equality operators. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D84299
This commit is contained in:
Родитель
d824054ce7
Коммит
3d27322bc3
|
@ -610,16 +610,6 @@ class BrowsingContext : public nsILoadContext, public nsWrapperCache {
|
|||
uint64_t mRequestContextId = 0;
|
||||
|
||||
FieldTuple mFields;
|
||||
|
||||
bool operator==(const IPCInitializer& aOther) const {
|
||||
return mId == aOther.mId && mParentId == aOther.mParentId &&
|
||||
mWindowless == aOther.mWindowless &&
|
||||
mUseRemoteTabs == aOther.mUseRemoteTabs &&
|
||||
mUseRemoteSubframes == aOther.mUseRemoteSubframes &&
|
||||
mOriginAttributes == aOther.mOriginAttributes &&
|
||||
mRequestContextId == aOther.mRequestContextId &&
|
||||
mFields == aOther.mFields;
|
||||
}
|
||||
};
|
||||
|
||||
// Create an IPCInitializer object for this BrowsingContext.
|
||||
|
|
|
@ -99,13 +99,6 @@ class WindowContext : public nsISupports, public nsWrapperCache {
|
|||
uint64_t mBrowsingContextId;
|
||||
|
||||
FieldTuple mFields;
|
||||
|
||||
bool operator==(const IPCInitializer& aOther) const {
|
||||
return mInnerWindowId == aOther.mInnerWindowId &&
|
||||
mOuterWindowId == aOther.mOuterWindowId &&
|
||||
mBrowsingContextId == aOther.mBrowsingContextId &&
|
||||
mFields == aOther.mFields;
|
||||
}
|
||||
};
|
||||
IPCInitializer GetIPCInitializer();
|
||||
|
||||
|
|
|
@ -374,7 +374,7 @@ struct KeyValuePair
|
|||
nsString value;
|
||||
};
|
||||
|
||||
union SyncedContextInitializer
|
||||
uncomparable union SyncedContextInitializer
|
||||
{
|
||||
BrowsingContextInitializer;
|
||||
WindowContextInitializer;
|
||||
|
|
|
@ -15,7 +15,7 @@ using refcounted class nsITransportSecurityInfo from "nsITransportSecurityInfo.h
|
|||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
struct WindowGlobalInit
|
||||
uncomparable struct WindowGlobalInit
|
||||
{
|
||||
// Fields which are synchronized to other processes are found here.
|
||||
WindowContextInitializer context;
|
||||
|
|
Загрузка…
Ссылка в новой задаче