mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 793314 - Followup: Remove PtrBits from nsAttrValueInlines.h.
This commit is contained in:
parent
5a60bdb3d3
commit
a6a4232a36
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user