Skip to content
Permalink
Browse files

Bug 1135413 - Use one bit per bool member to save a few bytes in nsRa…

…nge objects. r=smaug
  • Loading branch information...
rmottola committed Aug 9, 2019
1 parent 8b62ea0 commit e242805132a0d18e06e78efc48754a18ef398c9d
Showing with 8 additions and 7 deletions.
  1. +8 −7 dom/base/nsRange.h
@@ -327,13 +327,14 @@ class nsRange final : public nsIDOMRange,
int32_t mStartOffset;
int32_t mEndOffset;

bool mIsPositioned;
bool mIsDetached;
bool mMaySpanAnonymousSubtrees;
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;

0 comments on commit e242805

Please sign in to comment.
You can’t perform that action at this time.