Index: third_party/WebKit/Source/core/dom/Element.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp |
index 116b3efc50a51a949ba47e66ccfe63669e163a35..e081c820395fe0fbe5793f16feb7705508555666 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -350,6 +350,19 @@ bool Element::hasAnimations() const |
return elementAnimations && !elementAnimations->isEmpty(); |
} |
+CompositorElementId Element::compositorElementId() const |
+{ |
+ ElementAnimations* animations = elementAnimations(); |
+ return animations ? animations->compositorElementId() : CompositorElementId(); |
+} |
+ |
+CompositorElementId Element::assignCompositorElementId() |
+{ |
+ CompositorElementId elementId = ensureElementAnimations().compositorElementId(); |
+ DCHECK(elementId); |
+ return elementId; |
+} |
+ |
Node::NodeType Element::getNodeType() const |
{ |
return ELEMENT_NODE; |