mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 527977 part 1. Remove unused ClearInheritedData functions. r=zwol
This commit is contained in:
parent
b296cdc48d
commit
f74086736a
@ -78,18 +78,6 @@ struct nsInheritedStyleData
|
||||
return aContext->AllocateFromShell(sz);
|
||||
}
|
||||
|
||||
void ClearInheritedData(PRUint32 aBits) {
|
||||
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args) \
|
||||
if (m##name##Data && (aBits & NS_STYLE_INHERIT_BIT(name))) \
|
||||
m##name##Data = nsnull;
|
||||
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args)
|
||||
|
||||
#include "nsStyleStructList.h"
|
||||
|
||||
#undef STYLE_STRUCT_INHERITED
|
||||
#undef STYLE_STRUCT_RESET
|
||||
}
|
||||
|
||||
void Destroy(PRUint32 aBits, nsPresContext* aContext) {
|
||||
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args) \
|
||||
if (m##name##Data && !(aBits & NS_STYLE_INHERIT_BIT(name))) \
|
||||
@ -135,18 +123,6 @@ struct nsResetStyleData
|
||||
return aContext->AllocateFromShell(sz);
|
||||
}
|
||||
|
||||
void ClearInheritedData(PRUint32 aBits) {
|
||||
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args) \
|
||||
if (m##name##Data && (aBits & NS_STYLE_INHERIT_BIT(name))) \
|
||||
m##name##Data = nsnull;
|
||||
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args)
|
||||
|
||||
#include "nsStyleStructList.h"
|
||||
|
||||
#undef STYLE_STRUCT_RESET
|
||||
#undef STYLE_STRUCT_INHERITED
|
||||
}
|
||||
|
||||
void Destroy(PRUint32 aBits, nsPresContext* aContext) {
|
||||
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args) \
|
||||
if (m##name##Data && !(aBits & NS_STYLE_INHERIT_BIT(name))) \
|
||||
@ -237,13 +213,6 @@ struct nsCachedStyleData
|
||||
#undef STYLE_STRUCT_RESET
|
||||
#undef STYLE_STRUCT_INHERITED
|
||||
|
||||
NS_HIDDEN_(void) ClearInheritedData(PRUint32 aBits) {
|
||||
if (mResetData)
|
||||
mResetData->ClearInheritedData(aBits);
|
||||
if (mInheritedData)
|
||||
mInheritedData->ClearInheritedData(aBits);
|
||||
}
|
||||
|
||||
NS_HIDDEN_(void) Destroy(PRUint32 aBits, nsPresContext* aContext) {
|
||||
if (mResetData)
|
||||
mResetData->Destroy(aBits, aContext);
|
||||
|
Loading…
Reference in New Issue
Block a user