Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Issue 2678143003: Move CSS animations use counters to UseCounter (Closed)

Created:
3 years, 10 months ago by suzyh_UTC10 (ex-contributor)
Modified:
3 years, 9 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, Eric Willigers, rjwright, shans
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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} 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -22 lines) Patch
A third_party/WebKit/LayoutTests/animations/animated-css-property-usecounter.html View 1 2 3 4 5 6 7 1 chunk +90 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/animations/animated-css-property-usecounter-expected.txt View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/animations/animated-css-property-usecounter-for-transitions.html View 1 1 chunk +62 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 3 4 5 6 7 8 5 chunks +58 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounterTest.cpp View 1 2 3 4 5 6 7 8 11 chunks +73 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.idl View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (11 generated)
alancutter (OOO until 2018)
lgtm once there are test cases.
3 years, 10 months ago (2017-02-06 23:54:54 UTC) #2
suzyh_UTC10 (ex-contributor)
This is now most of the way there, aside from (a) use counting custom properties ...
3 years, 10 months ago (2017-02-14 06:35:03 UTC) #5
suzyh_UTC10 (ex-contributor)
PTAL
3 years, 10 months ago (2017-02-20 04:11:49 UTC) #6
alancutter (OOO until 2018)
https://codereview.chromium.org/2678143003/diff/120001/third_party/WebKit/LayoutTests/animations/animated-css-property-usecounter.html File third_party/WebKit/LayoutTests/animations/animated-css-property-usecounter.html (right): https://codereview.chromium.org/2678143003/diff/120001/third_party/WebKit/LayoutTests/animations/animated-css-property-usecounter.html#newcode64 third_party/WebKit/LayoutTests/animations/animated-css-property-usecounter.html:64: // FIXME(suzyh): CSS property UseCounter should include custom properties ...
3 years, 10 months ago (2017-02-20 23:49:39 UTC) #7
suzyh_UTC10 (ex-contributor)
On 2017/02/20 at 23:49:39, alancutter wrote: > https://codereview.chromium.org/2678143003/diff/120001/third_party/WebKit/LayoutTests/animations/animated-css-property-usecounter.html > File third_party/WebKit/LayoutTests/animations/animated-css-property-usecounter.html (right): > > https://codereview.chromium.org/2678143003/diff/120001/third_party/WebKit/LayoutTests/animations/animated-css-property-usecounter.html#newcode64 ...
3 years, 10 months ago (2017-02-20 23:59:57 UTC) #8
suzyh_UTC10 (ex-contributor)
On 2017/02/20 at 23:59:57, suzyh wrote: > On 2017/02/20 at 23:49:39, alancutter wrote: > > ...
3 years, 10 months ago (2017-02-21 00:12:56 UTC) #10
alancutter (OOO until 2018)
lgtm
3 years, 10 months ago (2017-02-21 00:44:08 UTC) #11
Rick Byers
So sorry for the delay! LGTM https://codereview.chromium.org/2678143003/diff/140001/third_party/WebKit/Source/core/frame/UseCounter.cpp File third_party/WebKit/Source/core/frame/UseCounter.cpp (right): https://codereview.chromium.org/2678143003/diff/140001/third_party/WebKit/Source/core/frame/UseCounter.cpp#newcode1307 third_party/WebKit/Source/core/frame/UseCounter.cpp:1307: "AnimatedCSSFirstUsed", "feature", sampleId); ...
3 years, 10 months ago (2017-02-25 15:10:58 UTC) #12
suzyh_UTC10 (ex-contributor)
+sashab for sanity-check of FrameHost -> Page change after rebase rbyers: PTAL On 2017/02/25 at ...
3 years, 9 months ago (2017-03-06 03:35:15 UTC) #13
suzyh_UTC10 (ex-contributor)
Actually +sashab this time for sanity-check of FrameHost -> Page change after rebase
3 years, 9 months ago (2017-03-06 03:37:32 UTC) #15
sashab
Ahh thanks for looping me in suzy! Looks great. LGTM
3 years, 9 months ago (2017-03-06 05:24:13 UTC) #16
suzyh_UTC10 (ex-contributor)
Ping rbyers PTAL (I suspect the previous message got buried)
3 years, 9 months ago (2017-03-07 07:23:37 UTC) #17
suzyh_UTC10 (ex-contributor)
On 2017/03/07 at 07:23:37, suzyh wrote: > Ping rbyers PTAL (I suspect the previous message ...
3 years, 9 months ago (2017-03-09 23:15:32 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2678143003/160001
3 years, 9 months ago (2017-03-09 23:16:42 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/380642)
3 years, 9 months ago (2017-03-10 00:07:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2678143003/160001
3 years, 9 months ago (2017-03-10 02:58:40 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 03:15:01 UTC) #28
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/4ad8268cf8e0bec120786925799c...

Powered by Google App Engine
This is Rietveld 408576698