Move CSS animations use counters to UseCounter
The use counts for animated CSS properties currently uses a custom histogram which counts a property once per animation. This patch moves the use counts to the existing UseCounter framework in order to bring the counts in line with the CSS property UseCounters. In particular, this is to ensure that properties are counted once per page instead of once per animation. This patch: - adds a BitVector and corresponding functions to UseCounter - adds test cases to UseCounterTest, this time with an optional legacyHistogram name - exposes the new 'is counted' UseCounter function to Internals for testing - adds layout tests to verify that the animated CSS property UseCounter has been correctly incremented for animations (standard and custom CSS properties) and transitions (standard CSS properties only). One of the layout tests is failing because the standard CSS property UseCounter currently excludes custom properties. This will be fixed in a future patch. BUG=458925 Review-Url: https://codereview.chromium.org/2678143003 Cr-Commit-Position: refs/heads/master@{#455978}
Showing
Please register or sign in to comment