| Index: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
|
| index 9f200f95cc7bc9b53884bf5c03928483be436c67..493d0005ece582cf8db132523fefcc2a8434b120 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
|
| @@ -376,7 +376,7 @@ Response InspectorLayerTreeAgent::makeSnapshot(const String& layerId,
|
| adoptRef(new PictureSnapshot(ToSkPicture(context.endRecording())));
|
|
|
| *snapshotId = String::number(++s_lastSnapshotId);
|
| - bool newEntry = m_snapshotById.add(*snapshotId, snapshot).isNewEntry;
|
| + bool newEntry = m_snapshotById.insert(*snapshotId, snapshot).isNewEntry;
|
| DCHECK(newEntry);
|
| return Response::OK();
|
| }
|
| @@ -402,7 +402,7 @@ Response InspectorLayerTreeAgent::loadSnapshot(
|
| return Response::Error("Empty snapshot");
|
|
|
| *snapshotId = String::number(++s_lastSnapshotId);
|
| - bool newEntry = m_snapshotById.add(*snapshotId, snapshot).isNewEntry;
|
| + bool newEntry = m_snapshotById.insert(*snapshotId, snapshot).isNewEntry;
|
| DCHECK(newEntry);
|
| return Response::OK();
|
| }
|
|
|