mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
Optimize array capacity settings in style and SVG processing classes
This commit is contained in:
parent
d8c48d6830
commit
cd020e380d
3 changed files with 6 additions and 2 deletions
|
|
@ -530,7 +530,7 @@ nsStyleSet::GatherRuleProcessors(SheetType aType)
|
|||
scope->SetIsScopedStyleRoot();
|
||||
|
||||
// Create a rule processor for the scope.
|
||||
nsTArray<RefPtr<CSSStyleSheet>> sheetsForScope;
|
||||
nsTArray<RefPtr<CSSStyleSheet>> sheetsForScope(end - start);
|
||||
sheetsForScope.AppendElements(sheets.Elements() + start, end - start);
|
||||
nsCSSRuleProcessor* oldRP = oldScopedRuleProcessorHash.Get(scope);
|
||||
mScopedDocSheetRuleProcessors.AppendElement
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue