зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1267833 - Pass the RawServoStyleSet to Servo_GetComputedValuesForAnonymousBox. r=heycam
This commit is contained in:
Родитель
fe62fd9efa
Коммит
70f077146d
|
@ -254,7 +254,8 @@ Servo_GetComputedValues(RawGeckoElement* element)
|
|||
|
||||
ServoComputedValues*
|
||||
Servo_GetComputedValuesForAnonymousBox(ServoComputedValues* parentStyleOrNull,
|
||||
nsIAtom* pseudoTag)
|
||||
nsIAtom* pseudoTag,
|
||||
RawServoStyleSet* set)
|
||||
{
|
||||
MOZ_CRASH("stylo: shouldn't be calling Servo_GetComputedValuesForAnonymousBox in a "
|
||||
"non-MOZ_STYLO build");
|
||||
|
|
|
@ -78,7 +78,8 @@ void Servo_DropStyleSet(RawServoStyleSet* set);
|
|||
// Computed style data.
|
||||
ServoComputedValues* Servo_GetComputedValues(RawGeckoElement* element);
|
||||
ServoComputedValues* Servo_GetComputedValuesForAnonymousBox(ServoComputedValues* parentStyleOrNull,
|
||||
nsIAtom* pseudoTag);
|
||||
nsIAtom* pseudoTag,
|
||||
RawServoStyleSet* set);
|
||||
void Servo_AddRefComputedValues(ServoComputedValues*);
|
||||
void Servo_ReleaseComputedValues(ServoComputedValues*);
|
||||
|
||||
|
|
|
@ -130,7 +130,8 @@ ServoStyleSet::ResolveAnonymousBoxStyle(nsIAtom* aPseudoTag,
|
|||
aParentContext ? aParentContext->StyleSource().AsServoComputedValues()
|
||||
: nullptr;
|
||||
RefPtr<ServoComputedValues> computedValues =
|
||||
dont_AddRef(Servo_GetComputedValuesForAnonymousBox(parentStyle, aPseudoTag));
|
||||
dont_AddRef(Servo_GetComputedValuesForAnonymousBox(parentStyle, aPseudoTag,
|
||||
mRawSet.get()));
|
||||
MOZ_ASSERT(computedValues);
|
||||
|
||||
return NS_NewStyleContext(aParentContext, mPresContext, nullptr,
|
||||
|
|
Загрузка…
Ссылка в новой задаче