зеркало из https://github.com/mozilla/gecko-dev.git
Bug 978833 patch 17 - Remove Rule::mWasMatched. r=heycam
--HG-- extra : commitid : 61ndKkCSYPa
This commit is contained in:
Родитель
d049548fd1
Коммит
7d8e9c1328
|
@ -36,8 +36,7 @@ protected:
|
|||
: mSheet(0),
|
||||
mParentRule(nullptr),
|
||||
mLineNumber(aLineNumber),
|
||||
mColumnNumber(aColumnNumber),
|
||||
mWasMatched(false)
|
||||
mColumnNumber(aColumnNumber)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -45,8 +44,7 @@ protected:
|
|||
: mSheet(aCopy.mSheet),
|
||||
mParentRule(aCopy.mParentRule),
|
||||
mLineNumber(aCopy.mLineNumber),
|
||||
mColumnNumber(aCopy.mColumnNumber),
|
||||
mWasMatched(false)
|
||||
mColumnNumber(aCopy.mColumnNumber)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -144,8 +142,7 @@ protected:
|
|||
|
||||
// Keep the same type so that MSVC packs them.
|
||||
uint32_t mLineNumber;
|
||||
uint32_t mColumnNumber : 31;
|
||||
uint32_t mWasMatched : 1;
|
||||
uint32_t mColumnNumber;
|
||||
};
|
||||
|
||||
} // namespace css
|
||||
|
|
|
@ -1450,10 +1450,6 @@ NS_IMPL_RELEASE(StyleRule)
|
|||
void
|
||||
StyleRule::RuleMatched()
|
||||
{
|
||||
if (!mWasMatched) {
|
||||
mWasMatched = true;
|
||||
}
|
||||
|
||||
mDeclaration->SetImmutable();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче