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 1f569c793a2e287e59b9fe6d72cd1eda9f4ea84e..3f85583f5a5f66b51ea7550ddbab3c7d0561f995 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -36,6 +36,7 @@ |
#include "core/SVGNames.h" |
#include "core/XMLNames.h" |
#include "core/animation/AnimationTimeline.h" |
+#include "core/animation/CustomCompositorAnimations.h" |
#include "core/animation/css/CSSAnimations.h" |
#include "core/css/CSSImageValue.h" |
#include "core/css/CSSStyleSheet.h" |
@@ -127,6 +128,7 @@ |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/UserGestureIndicator.h" |
#include "platform/graphics/CompositorMutableProperties.h" |
+#include "platform/graphics/CompositorMutation.h" |
#include "platform/scroll/ScrollableArea.h" |
#include "wtf/BitVector.h" |
#include "wtf/HashFunctions.h" |
@@ -953,6 +955,13 @@ void Element::decrementCompositorProxiedProperties(uint32_t mutableProperties) |
setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::CompositorProxy)); |
} |
+void Element::updateFromCompositorMutation(const CompositorMutation& mutation) |
+{ |
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "Element::updateFromCompositorMutation"); |
+ if (mutation.isOpacityMutated() || mutation.isTransformMutated()) |
+ ensureElementAnimations().customCompositorAnimations().applyUpdate(*this, mutation); |
+} |
+ |
uint32_t Element::compositorMutableProperties() const |
{ |
if (!hasRareData()) |