| Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| index 334ab82ab3910a692d6d4a4ae3aabc1124a526c2..a5037d53b1cb77d20205ef8e5a7f86cc005bb9b6 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| @@ -105,6 +105,7 @@ struct SameSizeAsPaintLayer : DisplayItemClient {
|
| void* pointer;
|
| LayoutRect rect;
|
| } previous_paint_status;
|
| + uint64_t unique_id;
|
| };
|
|
|
| static_assert(sizeof(PaintLayer) == sizeof(SameSizeAsPaintLayer),
|
| @@ -167,6 +168,8 @@ PaintLayer::PaintLayer(LayoutBoxModelObject& layout_object)
|
| static_inline_position_(0),
|
| static_block_position_(0),
|
| ancestor_overflow_layer_(nullptr) {
|
| + static PaintLayerId paint_layer_id_counter = 0;
|
| + unique_id_ = ++paint_layer_id_counter;
|
| UpdateStackingNode();
|
|
|
| is_self_painting_layer_ = ShouldBeSelfPaintingLayer();
|
|
|