зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1464496 - Part 2: Move the mRaw before the two booleans for better packing r=emilio
MozReview-Commit-ID: Gi4Is7RgVmN --HG-- extra : rebase_source : d72bd97913d76c28698fe362e90361f77306c783
This commit is contained in:
Родитель
361380987c
Коммит
ced506ea81
|
@ -31,9 +31,9 @@ class DeclarationBlock final
|
||||||
public:
|
public:
|
||||||
explicit DeclarationBlock(
|
explicit DeclarationBlock(
|
||||||
already_AddRefed<RawServoDeclarationBlock> aRaw)
|
already_AddRefed<RawServoDeclarationBlock> aRaw)
|
||||||
: mImmutable(false)
|
: mRaw(aRaw)
|
||||||
|
, mImmutable(false)
|
||||||
, mIsDirty(false)
|
, mIsDirty(false)
|
||||||
, mRaw(aRaw)
|
|
||||||
{
|
{
|
||||||
mContainer.mRaw = 0;
|
mContainer.mRaw = 0;
|
||||||
}
|
}
|
||||||
|
@ -42,9 +42,9 @@ public:
|
||||||
: DeclarationBlock(Servo_DeclarationBlock_CreateEmpty().Consume()) {}
|
: DeclarationBlock(Servo_DeclarationBlock_CreateEmpty().Consume()) {}
|
||||||
|
|
||||||
DeclarationBlock(const DeclarationBlock& aCopy)
|
DeclarationBlock(const DeclarationBlock& aCopy)
|
||||||
: mImmutable(false)
|
: mRaw(Servo_DeclarationBlock_Clone(aCopy.mRaw).Consume())
|
||||||
|
, mImmutable(false)
|
||||||
, mIsDirty(false)
|
, mIsDirty(false)
|
||||||
, mRaw(Servo_DeclarationBlock_Clone(aCopy.mRaw).Consume())
|
|
||||||
{
|
{
|
||||||
mContainer.mRaw = 0;
|
mContainer.mRaw = 0;
|
||||||
}
|
}
|
||||||
|
@ -209,6 +209,8 @@ private:
|
||||||
nsHTMLCSSStyleSheet* mHTMLCSSStyleSheet;
|
nsHTMLCSSStyleSheet* mHTMLCSSStyleSheet;
|
||||||
} mContainer;
|
} mContainer;
|
||||||
|
|
||||||
|
RefPtr<RawServoDeclarationBlock> mRaw;
|
||||||
|
|
||||||
// set when declaration put in the rule tree;
|
// set when declaration put in the rule tree;
|
||||||
bool mImmutable;
|
bool mImmutable;
|
||||||
|
|
||||||
|
@ -224,8 +226,6 @@ private:
|
||||||
// reference, and there is no problem with another user of the same
|
// reference, and there is no problem with another user of the same
|
||||||
// DeclarationBlock thinking that it is not dirty.
|
// DeclarationBlock thinking that it is not dirty.
|
||||||
Atomic<bool, MemoryOrdering::Relaxed> mIsDirty;
|
Atomic<bool, MemoryOrdering::Relaxed> mIsDirty;
|
||||||
|
|
||||||
RefPtr<RawServoDeclarationBlock> mRaw;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace mozilla
|
} // namespace mozilla
|
||||||
|
|
Загрузка…
Ссылка в новой задаче