From c85e8f07049c98b1be4efc0316ebc24275004abc Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Tue, 24 Feb 2015 18:35:30 +0000 Subject: [PATCH] Bug 1135413 - Use one bit per bool member to save a few bytes in nsRange objects. r=smaug --- dom/base/nsRange.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dom/base/nsRange.h b/dom/base/nsRange.h index e9a02a86333..4428f0c38b9 100644 --- a/dom/base/nsRange.h +++ b/dom/base/nsRange.h @@ -351,14 +351,14 @@ protected: int32_t mStartOffset; int32_t mEndOffset; - bool mIsPositioned; - bool mIsDetached; - bool mMaySpanAnonymousSubtrees; - bool mInSelection; - bool mIsGenerated; - bool mStartOffsetWasIncremented; - bool mEndOffsetWasIncremented; - bool mEnableGravitationOnElementRemoval; + bool mIsPositioned : 1; + bool mIsDetached : 1; + bool mMaySpanAnonymousSubtrees : 1; + bool mInSelection : 1; + bool mIsGenerated : 1; + bool mStartOffsetWasIncremented : 1; + bool mEndOffsetWasIncremented : 1; + bool mEnableGravitationOnElementRemoval : 1; #ifdef DEBUG int32_t mAssertNextInsertOrAppendIndex; nsINode* mAssertNextInsertOrAppendNode;