diff --git a/layout/style/ServoBindings.cpp b/layout/style/ServoBindings.cpp index 42afea006b0a..55d751b9e105 100644 --- a/layout/style/ServoBindings.cpp +++ b/layout/style/ServoBindings.cpp @@ -398,18 +398,18 @@ Gecko_GetImplementedPseudo(RawGeckoElementBorrowed aElement) } nsChangeHint -Gecko_CalcStyleDifference(nsStyleContext* aOldStyleContext, - ServoComputedValuesBorrowed aComputedValues, +Gecko_CalcStyleDifference(nsStyleContext* aOldStyleFromFrame, + const ServoStyleContext* aNewStyle, bool* aAnyStyleChanged) { - MOZ_ASSERT(aOldStyleContext); - MOZ_ASSERT(aComputedValues); + MOZ_ASSERT(aOldStyleFromFrame); + MOZ_ASSERT(aNewStyle); uint32_t equalStructs, samePointerStructs; nsChangeHint result = - aOldStyleContext->CalcStyleDifference(aComputedValues, - &equalStructs, - &samePointerStructs); + aOldStyleFromFrame->CalcStyleDifference(aNewStyle->ComputedValues(), + &equalStructs, + &samePointerStructs); *aAnyStyleChanged = equalStructs != NS_STYLE_INHERIT_MASK; return result; } diff --git a/layout/style/ServoBindings.h b/layout/style/ServoBindings.h index 1948eb88b6df..c163ea9fe1c8 100644 --- a/layout/style/ServoBindings.h +++ b/layout/style/ServoBindings.h @@ -378,8 +378,8 @@ void Gecko_SetOwnerDocumentNeedsStyleFlush(RawGeckoElementBorrowed element); nsStyleContext* Gecko_GetStyleContext(RawGeckoElementBorrowed element, nsIAtom* aPseudoTagOrNull); mozilla::CSSPseudoElementType Gecko_GetImplementedPseudo(RawGeckoElementBorrowed element); -nsChangeHint Gecko_CalcStyleDifference(nsStyleContext* oldstyle, - ServoComputedValuesBorrowed newstyle, +nsChangeHint Gecko_CalcStyleDifference(nsStyleContext* old_style_from_frame, + const mozilla::ServoStyleContext* new_style, bool* any_style_changed); nsChangeHint Gecko_HintsHandledForDescendants(nsChangeHint aHint);