Backed out changeset 6f89b4ceda12 (bug 1380133)

This commit is contained in:
Sebastian Hengst 2017-07-20 15:40:16 +02:00
Родитель 42d11fca28
Коммит 515a615505
2 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -398,18 +398,18 @@ Gecko_GetImplementedPseudo(RawGeckoElementBorrowed aElement)
}
nsChangeHint
Gecko_CalcStyleDifference(nsStyleContext* aOldStyleFromFrame,
const ServoStyleContext* aNewStyle,
Gecko_CalcStyleDifference(nsStyleContext* aOldStyleContext,
ServoComputedValuesBorrowed aComputedValues,
bool* aAnyStyleChanged)
{
MOZ_ASSERT(aOldStyleFromFrame);
MOZ_ASSERT(aNewStyle);
MOZ_ASSERT(aOldStyleContext);
MOZ_ASSERT(aComputedValues);
uint32_t equalStructs, samePointerStructs;
nsChangeHint result =
aOldStyleFromFrame->CalcStyleDifference(aNewStyle->ComputedValues(),
&equalStructs,
&samePointerStructs);
aOldStyleContext->CalcStyleDifference(aComputedValues,
&equalStructs,
&samePointerStructs);
*aAnyStyleChanged = equalStructs != NS_STYLE_INHERIT_MASK;
return result;
}

Просмотреть файл

@ -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* old_style_from_frame,
const mozilla::ServoStyleContext* new_style,
nsChangeHint Gecko_CalcStyleDifference(nsStyleContext* oldstyle,
ServoComputedValuesBorrowed newstyle,
bool* any_style_changed);
nsChangeHint Gecko_HintsHandledForDescendants(nsChangeHint aHint);