mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1626570 - Improve handling of copying arrays in dom/smil/. r=birtles
Differential Revision: https://phabricator.services.mozilla.com/D73630
This commit is contained in:
parent
53e4e4c078
commit
e1c9ec0e18
@ -33,7 +33,8 @@ using namespace mozilla::dom;
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
typedef AutoTArray<RefPtr<RawServoAnimationValue>, 1> ServoAnimationValues;
|
||||
typedef CopyableAutoTArray<RefPtr<RawServoAnimationValue>, 1>
|
||||
ServoAnimationValues;
|
||||
|
||||
/*static*/
|
||||
SMILCSSValueType SMILCSSValueType::sSingleton;
|
||||
@ -48,7 +49,7 @@ struct ValueWrapper {
|
||||
const RefPtr<RawServoAnimationValue>& aValue)
|
||||
: mPropID(aPropID), mServoValues{(aValue)} {}
|
||||
ValueWrapper(nsCSSPropertyID aPropID, ServoAnimationValues&& aValues)
|
||||
: mPropID(aPropID), mServoValues{aValues} {}
|
||||
: mPropID(aPropID), mServoValues{std::move(aValues)} {}
|
||||
|
||||
bool operator==(const ValueWrapper& aOther) const {
|
||||
if (mPropID != aOther.mPropID) {
|
||||
|
@ -118,7 +118,7 @@ void SMILInterval::RemoveDependentTime(const SMILInstanceTime& aTime) {
|
||||
}
|
||||
|
||||
void SMILInterval::GetDependentTimes(InstanceTimeList& aTimes) {
|
||||
aTimes = mDependentTimes;
|
||||
aTimes = mDependentTimes.Clone();
|
||||
}
|
||||
|
||||
bool SMILInterval::IsDependencyChainLink() const {
|
||||
|
Loading…
Reference in New Issue
Block a user