зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1354947 - Rename FillKeyframesForName to GetKeyframesForName. r=birtles
MozReview-Commit-ID: AOLygEtuhpO --HG-- extra : rebase_source : 2db2a183588a44fc33e0e7bff44847813a72cb74
This commit is contained in:
Родитель
c115978360
Коммит
b57fed9509
|
@ -68,7 +68,7 @@ SERVO_BINDING_FUNC(Servo_StyleSet_InsertStyleSheetBefore, void,
|
|||
SERVO_BINDING_FUNC(Servo_StyleSet_FlushStyleSheets, void, RawServoStyleSetBorrowed set)
|
||||
SERVO_BINDING_FUNC(Servo_StyleSet_NoteStyleSheetsChanged, void,
|
||||
RawServoStyleSetBorrowed set, bool author_style_disabled)
|
||||
SERVO_BINDING_FUNC(Servo_StyleSet_FillKeyframesForName, bool,
|
||||
SERVO_BINDING_FUNC(Servo_StyleSet_GetKeyframesForName, bool,
|
||||
RawServoStyleSetBorrowed set,
|
||||
const nsACString* property,
|
||||
nsTimingFunctionBorrowed timing_function,
|
||||
|
|
|
@ -907,19 +907,19 @@ ServoStyleSet::AssertTreeIsClean()
|
|||
#endif
|
||||
|
||||
bool
|
||||
ServoStyleSet::FillKeyframesForName(const nsString& aName,
|
||||
const nsTimingFunction& aTimingFunction,
|
||||
const ServoComputedValues* aComputedValues,
|
||||
nsTArray<Keyframe>& aKeyframes)
|
||||
ServoStyleSet::GetKeyframesForName(const nsString& aName,
|
||||
const nsTimingFunction& aTimingFunction,
|
||||
const ServoComputedValues* aComputedValues,
|
||||
nsTArray<Keyframe>& aKeyframes)
|
||||
{
|
||||
MaybeRebuildStylist();
|
||||
|
||||
NS_ConvertUTF16toUTF8 name(aName);
|
||||
return Servo_StyleSet_FillKeyframesForName(mRawSet.get(),
|
||||
&name,
|
||||
&aTimingFunction,
|
||||
aComputedValues,
|
||||
&aKeyframes);
|
||||
return Servo_StyleSet_GetKeyframesForName(mRawSet.get(),
|
||||
&name,
|
||||
&aTimingFunction,
|
||||
aComputedValues,
|
||||
&aKeyframes);
|
||||
}
|
||||
|
||||
nsTArray<ComputedKeyframeValues>
|
||||
|
|
|
@ -297,10 +297,10 @@ public:
|
|||
*/
|
||||
already_AddRefed<ServoComputedValues> ResolveServoStyle(dom::Element* aElement);
|
||||
|
||||
bool FillKeyframesForName(const nsString& aName,
|
||||
const nsTimingFunction& aTimingFunction,
|
||||
const ServoComputedValues* aComputedValues,
|
||||
nsTArray<Keyframe>& aKeyframes);
|
||||
bool GetKeyframesForName(const nsString& aName,
|
||||
const nsTimingFunction& aTimingFunction,
|
||||
const ServoComputedValues* aComputedValues,
|
||||
nsTArray<Keyframe>& aKeyframes);
|
||||
|
||||
nsTArray<ComputedKeyframeValues>
|
||||
GetComputedKeyframeValuesFor(const nsTArray<Keyframe>& aKeyframes,
|
||||
|
|
|
@ -421,10 +421,10 @@ public:
|
|||
ServoStyleSet* styleSet = aPresContext->StyleSet()->AsServo();
|
||||
MOZ_ASSERT(styleSet);
|
||||
const nsTimingFunction& timingFunction = aSrc.GetTimingFunction();
|
||||
return styleSet->FillKeyframesForName(aSrc.GetName(),
|
||||
timingFunction,
|
||||
mComputedValues,
|
||||
aKeyframes);
|
||||
return styleSet->GetKeyframesForName(aSrc.GetName(),
|
||||
timingFunction,
|
||||
mComputedValues,
|
||||
aKeyframes);
|
||||
}
|
||||
void SetKeyframes(KeyframeEffectReadOnly& aEffect,
|
||||
nsTArray<Keyframe>&& aKeyframes)
|
||||
|
|
Загрузка…
Ссылка в новой задаче