anonymous unions CAN'T define any new types, so the struct's definition has
to be outside of the union... plus since the union is protected (and can't be declared a friend - since it is anonymous, the struct's def must be public. git-svn-id: svn://10.0.0.236/trunk@39336 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c34a9c03ae
commit
babeccb209
@ -107,17 +107,21 @@ protected:
|
||||
|
||||
nsIFrameImageLoader* mImageLoader;
|
||||
|
||||
public:
|
||||
struct _indFlags {
|
||||
PRUint32 mLoadImageFailed : 1;
|
||||
PRUint32 mHaveIntrinsicImageSize : 1;
|
||||
PRUint32 mNeedIntrinsicImageSize : 1;
|
||||
PRUint32 mAutoImageSize : 1;
|
||||
PRUint32 mHaveComputedSize : 1;
|
||||
PRUint32 mSquelchCallback : 1;
|
||||
PRUint32 mNeedSizeNotification : 1;
|
||||
} ;
|
||||
|
||||
protected:
|
||||
union {
|
||||
PRUint32 mAllFlags;
|
||||
struct {
|
||||
PRUint32 mLoadImageFailed : 1;
|
||||
PRUint32 mHaveIntrinsicImageSize : 1;
|
||||
PRUint32 mNeedIntrinsicImageSize : 1;
|
||||
PRUint32 mAutoImageSize : 1;
|
||||
PRUint32 mHaveComputedSize : 1;
|
||||
PRUint32 mSquelchCallback : 1;
|
||||
PRUint32 mNeedSizeNotification : 1;
|
||||
} mFlags;
|
||||
_indFlags mFlags;
|
||||
};
|
||||
|
||||
nsSize mIntrinsicImageSize;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user