mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Issue #2488 - Part 3: Remove the StyleSetHandle smart pointer class
This commit is contained in:
parent
4d7bdedade
commit
4bf43b8fb4
58 changed files with 155 additions and 589 deletions
|
|
@ -525,7 +525,7 @@ ResolvedStyleCache::Get(nsPresContext *aPresContext,
|
|||
|
||||
nsCOMArray<nsIStyleRule> rules;
|
||||
rules.AppendObject(aKeyframeDeclaration);
|
||||
RefPtr<nsStyleContext> resultStrong = aPresContext->StyleSet()->AsGecko()->
|
||||
RefPtr<nsStyleContext> resultStrong = aPresContext->StyleSet()->
|
||||
ResolveStyleByAddingRules(aParentStyleContext, rules);
|
||||
mCache.Put(aKeyframeDeclaration, resultStrong);
|
||||
result = resultStrong;
|
||||
|
|
@ -1052,7 +1052,7 @@ CSSAnimationBuilder::GetComputedValue(nsPresContext* aPresContext,
|
|||
StyleAnimationValue computedValue;
|
||||
|
||||
if (!mStyleWithoutAnimation) {
|
||||
mStyleWithoutAnimation = aPresContext->StyleSet()->AsGecko()->
|
||||
mStyleWithoutAnimation = aPresContext->StyleSet()->
|
||||
ResolveStyleWithoutAnimation(mTarget, mStyleContext,
|
||||
eRestyle_AllHintsWithAnimations);
|
||||
}
|
||||
|
|
@ -1098,7 +1098,7 @@ nsAnimationManager::BuildAnimations(nsStyleContext* aStyleContext,
|
|||
nsCSSKeyframesRule* rule =
|
||||
src.GetName().IsEmpty()
|
||||
? nullptr
|
||||
: mPresContext->StyleSet()->AsGecko()->KeyframesRuleForName(src.GetName());
|
||||
: mPresContext->StyleSet()->KeyframesRuleForName(src.GetName());
|
||||
if (!rule) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue