| Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| index b7dfe05991676d475cb001b486c57e974e9be366..9daccaf0230176950c136827b4cd06c43b25b49a 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| @@ -26,6 +26,7 @@
|
| #include "core/layout/compositing/CompositedLayerMapping.h"
|
|
|
| #include "core/HTMLNames.h"
|
| +#include "core/dom/CompositorIdToElementMap.h"
|
| #include "core/dom/DOMNodeIds.h"
|
| #include "core/fetch/ImageResource.h"
|
| #include "core/frame/FrameHost.h"
|
| @@ -1503,7 +1504,8 @@ void CompositedLayerMapping::updateElementIdAndCompositorMutableProperties()
|
| if (owningNode->isElementNode()) {
|
| Element* owningElement = toElement(owningNode);
|
| uint32_t compositorMutableProperties = owningElement->compositorMutableProperties();
|
| - elementId = DOMNodeIds::idForNode(owningNode);
|
| + elementId = owningElement->assignCompositorElementId();
|
| + CompositorIdToElementMap::registerElement(*owningElement);
|
| mainMutableProperties = (CompositorMutableProperty::kOpacity | CompositorMutableProperty::kTransform) & compositorMutableProperties;
|
| scrollMutableProperties = (CompositorMutableProperty::kScrollLeft | CompositorMutableProperty::kScrollTop) & compositorMutableProperties;
|
| }
|
|
|