mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
Issue #2112 - Part 5: Remove Servo from forwarding code used by magic pointer classes
This commit is contained in:
parent
b1c9206051
commit
a93a7bed47
52 changed files with 274 additions and 1116 deletions
|
|
@ -754,8 +754,6 @@ nsStyleSet::AppendAllXBLStyleSheets(nsTArray<mozilla::CSSStyleSheet*>& aArray) c
|
|||
AutoTArray<StyleSheet*, 32> sheets;
|
||||
mBindingManager->AppendAllSheets(sheets);
|
||||
for (StyleSheet* handle : sheets) {
|
||||
MOZ_ASSERT(handle->IsGecko(), "stylo: AppendAllSheets shouldn't give us "
|
||||
"ServoStyleSheets yet");
|
||||
aArray.AppendElement(handle->AsGecko());
|
||||
}
|
||||
}
|
||||
|
|
@ -1760,9 +1758,6 @@ nsStyleSet::ResolveStyleWithoutAnimation(dom::Element* aTarget,
|
|||
pseudoType == CSSPseudoElementType::before ||
|
||||
pseudoType == CSSPseudoElementType::after,
|
||||
"unexpected type for animations");
|
||||
MOZ_ASSERT(PresContext()->RestyleManager()->IsGecko(),
|
||||
"stylo: the style set and restyle manager must have the same "
|
||||
"StyleBackendType");
|
||||
RestyleManager* restyleManager = PresContext()->RestyleManager()->AsGecko();
|
||||
|
||||
bool oldSkipAnimationRules = restyleManager->SkipAnimationRules();
|
||||
|
|
@ -2243,9 +2238,6 @@ nsStyleSet::ReparentStyleContext(nsStyleContext* aStyleContext,
|
|||
CSSPseudoElementType pseudoType = aStyleContext->GetPseudoType();
|
||||
nsRuleNode* ruleNode = aStyleContext->RuleNode();
|
||||
|
||||
MOZ_ASSERT(PresContext()->RestyleManager()->IsGecko(),
|
||||
"stylo: the style set and restyle manager must have the same "
|
||||
"StyleBackendType");
|
||||
NS_ASSERTION(!PresContext()->RestyleManager()->AsGecko()->SkipAnimationRules(),
|
||||
"we no longer handle SkipAnimationRules()");
|
||||
|
||||
|
|
@ -2481,8 +2473,6 @@ nsStyleSet::EnsureUniqueInnerOnCSSSheets()
|
|||
// CSSStyleSheets).
|
||||
mBindingManager->AppendAllSheets(sheets);
|
||||
for (StyleSheet* sheet : sheets) {
|
||||
MOZ_ASSERT(sheet->IsGecko(), "stylo: AppendAllSheets shouldn't give us "
|
||||
"ServoStyleSheets yet");
|
||||
queue.AppendElement(sheet->AsGecko());
|
||||
}
|
||||
}
|
||||
|
|
@ -2531,8 +2521,5 @@ nsStyleSet::ClearSelectors()
|
|||
if (!mRuleTree) {
|
||||
return;
|
||||
}
|
||||
MOZ_ASSERT(PresContext()->RestyleManager()->IsGecko(),
|
||||
"stylo: the style set and restyle manager must have the same "
|
||||
"StyleBackendType");
|
||||
PresContext()->RestyleManager()->AsGecko()->ClearSelectors();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue