mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Backed out changeset ac9e8b31ac78 (bug 1275064) for bustage on a CLOSED TREE
--HG-- extra : rebase_source : d810dbef0beaebe2b9434300c0c89f66df84b3e2
This commit is contained in:
parent
42b1907a65
commit
9e3e4f59dc
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user