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

Unified Diff: third_party/WebKit/Source/core/animation/ElementAnimations.cpp

Issue 1944623002: CC Animation: Use ElementId to attach CC animation players. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erasedomids
Patch Set: Let CC clients generate their own ElementIds locally. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/ElementAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/ElementAnimations.cpp b/third_party/WebKit/Source/core/animation/ElementAnimations.cpp
index ba3fabd1c17b29c44541f59242c988b50bec03f7..7adacbf45ace484ae03f64f04f333a26837b16d0 100644
--- a/third_party/WebKit/Source/core/animation/ElementAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/ElementAnimations.cpp
@@ -34,10 +34,8 @@
namespace blink {
-static CompositorElementId s_nextCompositorElementId = 1;
-
ElementAnimations::ElementAnimations()
- : m_compositorElementId(s_nextCompositorElementId++)
+ : m_compositorElementId(nextCompositorElementId())
, m_animationStyleChange(false)
{
}

Powered by Google App Engine
This is Rietveld 408576698