Issue #2135 - Bug 1329877: Optimize AncestorFilter usage in lazy frame construction

This commit is contained in:
FranklinDM 2023-03-04 13:59:36 +08:00 committed by roytam1
commit 7924a2f60d
3 changed files with 112 additions and 33 deletions

View file

@ -444,6 +444,15 @@ struct MOZ_STACK_CLASS TreeMatchContext {
}
}
}
enum ForFrameConstructionTag { ForFrameConstruction };
TreeMatchContext(nsIDocument* aDocument,
ForFrameConstructionTag)
: TreeMatchContext(true,
nsRuleWalker::eRelevantLinkUnvisited,
aDocument)
{}
};
struct MOZ_STACK_CLASS RuleProcessorData {