Index: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp |
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp |
index ecc21935aeb22a08648b8836afadf4c2506fd479..8a9d4fed5aa547b0e510763d7dd7264733a30bee 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp |
@@ -404,14 +404,12 @@ void PaintLayerCompositor::updateIfNeeded() |
if (updateType != CompositingUpdateNone) { |
if (RuntimeEnabledFeatures::compositorWorkerEnabled() && m_scrollLayer) { |
if (Element* scrollingElement = m_layoutView.document().scrollingElement()) { |
- CompositorElementId elementId = 0; |
uint32_t mutableProperties = CompositorMutableProperty::kNone; |
if (scrollingElement->hasCompositorProxy()) { |
- elementId = scrollingElement->assignCompositorElementId(); |
+ m_scrollLayer->setElementId(scrollingElement->assignCompositorElementId()); |
CompositorIdToElementMap::registerElement(*scrollingElement); |
mutableProperties = (CompositorMutableProperty::kScrollLeft | CompositorMutableProperty::kScrollTop) & scrollingElement->compositorMutableProperties(); |
} |
- m_scrollLayer->setElementId(elementId); |
m_scrollLayer->setCompositorMutableProperties(mutableProperties); |
} |
} |