| Index: third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
|
| diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
|
| index 3f8a3c397b9cc3f5c53f53223d7f6ef5979c5e81..e9275aa80cb898f4d9e71504bde502157077045d 100644
|
| --- a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
|
| +++ b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
|
| @@ -134,6 +134,9 @@ static StringKeyframeEffectModel* createKeyframeEffectModel(
|
| ("WebCore.Animation.CSSProperties"));
|
| for (CSSPropertyID property : specifiedPropertiesForUseCounter) {
|
| DCHECK(isValidCSSPropertyID(property));
|
| + UseCounter::countAnimatedCSS(elementForScoping->document(), property);
|
| +
|
| + // TODO(crbug.com/458925): Remove legacy histogram and counts
|
| propertyHistogram.sample(
|
| UseCounter::mapCSSPropertyIdToCSSSampleIdForHistogram(property));
|
| }
|
| @@ -602,7 +605,9 @@ void CSSAnimations::maybeApplyPendingUpdate(Element* element) {
|
| runningTransition.animation = animation;
|
| m_transitions.set(property, runningTransition);
|
| DCHECK(isValidCSSPropertyID(property.cssProperty()));
|
| + UseCounter::countAnimatedCSS(element->document(), property.cssProperty());
|
|
|
| + // TODO(crbug.com/458925): Remove legacy histogram and counts
|
| DEFINE_STATIC_LOCAL(SparseHistogram, propertyHistogram,
|
| ("WebCore.Animation.CSSProperties"));
|
| propertyHistogram.sample(
|
|
|