Bug 1207734 - Part 6.a. Update LayerAnimationInfo list according to the new added transform properties.
MozReview-Commit-ID: GVcjfGQIJ6O
--- a/layout/style/LayerAnimationInfo.cpp
+++ b/layout/style/LayerAnimationInfo.cpp
@@ -9,16 +9,25 @@
#include "nsCSSProps.h" // For nsCSSProps::PropHasFlags
namespace mozilla {
/* static */ const LayerAnimationInfo::Record LayerAnimationInfo::sRecords[] =
{ { eCSSProperty_transform,
DisplayItemType::TYPE_TRANSFORM,
nsChangeHint_UpdateTransformLayer },
+ { eCSSProperty_rotate,
+ DisplayItemType::TYPE_TRANSFORM,
+ nsChangeHint_UpdateTransformLayer },
+ { eCSSProperty_translate,
+ DisplayItemType::TYPE_TRANSFORM,
+ nsChangeHint_UpdateTransformLayer },
+ { eCSSProperty_scale,
+ DisplayItemType::TYPE_TRANSFORM,
+ nsChangeHint_UpdateTransformLayer },
{ eCSSProperty_opacity,
DisplayItemType::TYPE_OPACITY,
nsChangeHint_UpdateOpacityLayer } };
#ifdef DEBUG
/* static */ void
LayerAnimationInfo::Initialize()
{
--- a/layout/style/LayerAnimationInfo.h
+++ b/layout/style/LayerAnimationInfo.h
@@ -20,15 +20,15 @@ struct LayerAnimationInfo {
// For CSS properties that may be animated on a separate layer, represents
// a record of the corresponding layer type and change hint.
struct Record {
nsCSSPropertyID mProperty;
DisplayItemType mLayerType;
nsChangeHint mChangeHint;
};
- static const size_t kRecords = 2;
+ static const size_t kRecords = 5;
static const Record sRecords[kRecords];
};
} // namespace mozilla
#endif /* !defined(mozilla_LayerAnimationInfo_h) */