Backed out changeset ac9e8b31ac78 (bug 1275064) for bustage on a CLOSED TREE

--HG--
extra : rebase_source : d810dbef0beaebe2b9434300c0c89f66df84b3e2
This commit is contained in:
Carsten "Tomcat" Book 2016-05-24 11:51:53 +02:00
parent 42b1907a65
commit 9e3e4f59dc

View File

@ -125,14 +125,13 @@ private:
// A list of the "real words" in mSoftText, ordered by mSoftTextOffset
struct RealWord {
int32_t mSoftTextOffset;
uint32_t mLength : 31;
uint32_t mCheckableWord : 1;
int32_t mLength : 31;
int32_t mCheckableWord : 1;
RealWord(int32_t aOffset, uint32_t aLength, bool aCheckable)
RealWord(int32_t aOffset, int32_t aLength, bool aCheckable)
: mSoftTextOffset(aOffset), mLength(aLength), mCheckableWord(aCheckable)
{
static_assert(sizeof(RealWord) == 8, "RealWord should be limited to 8 bytes");
MOZ_ASSERT(aLength < INT32_MAX, "Word length is too large to fit in the bitfield");
}
int32_t EndOffset() const { return mSoftTextOffset + mLength; }