mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +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
|
#endif
|
||||||
|
|
||||||
nsPresContext *presContext = PresContext();
|
nsPresContext *presContext = PresContext();
|
||||||
DebugOnly<nsStyleSet*> geckoStyleSet = presContext->PresShell()->StyleSet()->GetAsGecko();
|
DebugOnly<nsStyleSet*> styleSet = presContext->PresShell()->StyleSet()->GetAsGecko();
|
||||||
NS_ASSERTION(!geckoStyleSet ||
|
NS_ASSERTION(!styleSet ||
|
||||||
geckoStyleSet->GetRuleTree() == mSource.AsGeckoRuleNode()->RuleTree() ||
|
styleSet->GetRuleTree() == mRuleNode->RuleTree() ||
|
||||||
geckoStyleSet->IsInRuleTreeReconstruct(),
|
styleSet->IsInRuleTreeReconstruct(),
|
||||||
"destroying style context from old rule tree too late");
|
"destroying style context from old rule tree too late");
|
||||||
|
|
||||||
if (mParent) {
|
if (mParent) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue