mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Issue #2112 - Follow-up: Fix broken rule node assertion
This commit is contained in:
parent
6d154eee11
commit
4cdc0ce964
1 changed files with 4 additions and 4 deletions
|
|
@ -160,10 +160,10 @@ nsStyleContext::~nsStyleContext()
|
|||
#endif
|
||||
|
||||
nsPresContext *presContext = PresContext();
|
||||
DebugOnly<nsStyleSet*> geckoStyleSet = presContext->PresShell()->StyleSet()->GetAsGecko();
|
||||
NS_ASSERTION(!geckoStyleSet ||
|
||||
geckoStyleSet->GetRuleTree() == mSource.AsGeckoRuleNode()->RuleTree() ||
|
||||
geckoStyleSet->IsInRuleTreeReconstruct(),
|
||||
DebugOnly<nsStyleSet*> styleSet = presContext->PresShell()->StyleSet()->GetAsGecko();
|
||||
NS_ASSERTION(!styleSet ||
|
||||
styleSet->GetRuleTree() == mRuleNode->RuleTree() ||
|
||||
styleSet->IsInRuleTreeReconstruct(),
|
||||
"destroying style context from old rule tree too late");
|
||||
|
||||
if (mParent) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue