| Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| index 2914334a788fcdd4cbdc5fa91777ac1870c905ee..1a718f7ab57c0e7077915f223b18c50f39bfadf1 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| @@ -783,14 +783,14 @@ String LocalFrame::layerTreeAsText(unsigned flags) const
|
| if (contentLayoutItem().isNull())
|
| return String();
|
|
|
| - RefPtr<JSONObject> layerTree = contentLayoutItem().compositor()->layerTreeAsJSON(static_cast<LayerTreeFlags>(flags));
|
| + std::unique_ptr<JSONObject> layerTree = contentLayoutItem().compositor()->layerTreeAsJSON(static_cast<LayerTreeFlags>(flags));
|
|
|
| if (flags & LayerTreeIncludesPaintInvalidations) {
|
| - RefPtr<JSONArray> objectPaintInvalidations = m_view->trackedObjectPaintInvalidationsAsJSON();
|
| - if (objectPaintInvalidations && objectPaintInvalidations->length()) {
|
| + std::unique_ptr<JSONArray> objectPaintInvalidations = m_view->trackedObjectPaintInvalidationsAsJSON();
|
| + if (objectPaintInvalidations && objectPaintInvalidations->size()) {
|
| if (!layerTree)
|
| layerTree = JSONObject::create();
|
| - layerTree->setArray("objectPaintInvalidations", objectPaintInvalidations);
|
| + layerTree->setArray("objectPaintInvalidations", std::move(objectPaintInvalidations));
|
| }
|
| }
|
|
|
|
|