зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1335942 - Part 6: Implement GetScaleValue for RawServoAnimationValue. r=hiro,manishearth
MozReview-Commit-ID: GnaS44gWmm2 --HG-- extra : rebase_source : 58ee6837c730fd7e54b75e52e48b3f77c8cb805a
This commit is contained in:
Родитель
93878e807e
Коммит
8372c2c7f8
|
@ -14,7 +14,6 @@
|
|||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "mozilla/Tuple.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "nsStyleTransformMatrix.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsCOMArray.h"
|
||||
#include "nsIStyleRule.h"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "nsCSSProps.h"
|
||||
#include "nsCSSValue.h"
|
||||
#include "nsStyleCoord.h"
|
||||
#include "nsStyleTransformMatrix.h"
|
||||
#include "ServoBindings.h"
|
||||
|
||||
class nsIFrame;
|
||||
|
@ -603,7 +604,11 @@ struct AnimationValue
|
|||
// Returns the scale for mGecko or mServo, which are calculated with
|
||||
// reference to aFrame.
|
||||
gfxSize GetScaleValue(const nsIFrame* aFrame) const {
|
||||
// TODO: GetScaleValue for mServo.
|
||||
if (mServo) {
|
||||
RefPtr<nsCSSValueSharedList> list;
|
||||
Servo_AnimationValues_GetTransform(mServo, &list);
|
||||
return nsStyleTransformMatrix::GetScaleValue(list, aFrame);
|
||||
}
|
||||
return mGecko.GetScaleValue(aFrame);
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче