Bug 793314 - Followup: Remove PtrBits from nsAttrValueInlines.h.

This commit is contained in:
Ms2ger 2012-10-02 10:57:57 +02:00
parent 5a60bdb3d3
commit a6a4232a36

View File

@ -5,6 +5,8 @@
#ifndef nsAttrValueInlines_h__
#define nsAttrValueInlines_h__
#include "mozilla/StandardInteger.h"
struct MiscContainer
{
typedef nsAttrValue::ValueType ValueType;
@ -14,7 +16,7 @@ struct MiscContainer
// mType isn't mCSSStyleRule.
// Note eStringBase and eAtomBase is used also to handle the type of
// mStringBits.
PtrBits mStringBits;
uintptr_t mStringBits;
union {
struct {
union {
@ -183,7 +185,7 @@ nsAttrValue::SetPtrValueAndType(void* aValue, ValueBaseType aType)
{
NS_ASSERTION(!(NS_PTR_TO_INT32(aValue) & ~NS_ATTRVALUE_POINTERVALUE_MASK),
"pointer not properly aligned, this will crash");
mBits = reinterpret_cast<PtrBits>(aValue) | aType;
mBits = reinterpret_cast<intptr_t>(aValue) | aType;
}
inline void