| 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 02fe615fc884494b012868f754ceb371cac02a40..ecc21935aeb22a08648b8836afadf4c2506fd479 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
|
| @@ -27,6 +27,7 @@
|
|
|
| #include "core/animation/AnimationTimeline.h"
|
| #include "core/animation/DocumentAnimations.h"
|
| +#include "core/dom/CompositorIdToElementMap.h"
|
| #include "core/dom/DOMNodeIds.h"
|
| #include "core/dom/Fullscreen.h"
|
| #include "core/editing/FrameSelection.h"
|
| @@ -406,7 +407,8 @@ void PaintLayerCompositor::updateIfNeeded()
|
| CompositorElementId elementId = 0;
|
| uint32_t mutableProperties = CompositorMutableProperty::kNone;
|
| if (scrollingElement->hasCompositorProxy()) {
|
| - elementId = DOMNodeIds::idForNode(scrollingElement);
|
| + elementId = scrollingElement->assignCompositorElementId();
|
| + CompositorIdToElementMap::registerElement(*scrollingElement);
|
| mutableProperties = (CompositorMutableProperty::kScrollLeft | CompositorMutableProperty::kScrollTop) & scrollingElement->compositorMutableProperties();
|
| }
|
| m_scrollLayer->setElementId(elementId);
|
|
|