| 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 0fe5af40d0854f6bae208d40c5a948a41564607e..dc256202a114da6d676996745ec349b7f31739e3 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(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();
|
| }
|
|
|