DescriptionMove 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}
Committed: https://chromium.googlesource.com/chromium/src/+/4ad8268cf8e0bec120786925799ce06591d478b3
Patch Set 1 #Patch Set 2 : Add layout tests plus internals function #Patch Set 3 : Rebase #Patch Set 4 : Add case to UseCounterTest #Patch Set 5 : Add FIXME for custom property counts #Patch Set 6 : Rebase #Patch Set 7 : Rebase on top of crrev.com/2701353002 #
Total comments: 2
Patch Set 8 : Replace FIXME with test expectation file #
Total comments: 2
Patch Set 9 : Rebase incl FrameHost->Page change, tweak test #Depends on Patchset: Messages
Total messages: 28 (11 generated)
|