Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / devtools / front_end / layers / LayerPaintProfilerView.js
index 7977c56..fea7753 100644 (file)
@@ -35,8 +35,18 @@ WebInspector.LayerPaintProfilerView.prototype = {
         function onSnapshotDone(snapshot)
         {
             this._layer = layer;
-            this._paintProfilerView.setSnapshot(snapshot || null);
-            this._logTreeView.setSnapshot(snapshot || null);
+            snapshot.commandLog(onCommandLogDone.bind(this, snapshot));
+        }
+
+        /**
+         * @param {!WebInspector.PaintProfilerSnapshot=} snapshot
+         * @param {!Array.<!Object>=} log
+         * @this {WebInspector.LayerPaintProfilerView}
+         */
+        function onCommandLogDone(snapshot, log)
+        {
+            this._logTreeView.setCommandLog(snapshot.target(), log);
+            this._paintProfilerView.setSnapshotAndLog(snapshot || null, log || []);
         }
     },