Web Inspector: Some timelines views work, show Legacy CPU timeline
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Feb 2019 05:29:36 +0000 (05:29 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Feb 2019 05:29:36 +0000 (05:29 +0000)
https://bugs.webkit.org/show_bug.cgi?id=194738

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2019-02-15
Reviewed by Yusuke Suzuki.

* UserInterface/Views/ContentView.js:
(WI.ContentView.createFromRepresentedObject):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241642 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/ContentView.js

index 7218b85..7c32d0c 100644 (file)
@@ -1,3 +1,13 @@
+2019-02-15  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: Some timelines views work, show Legacy CPU timeline
+        https://bugs.webkit.org/show_bug.cgi?id=194738
+
+        Reviewed by Yusuke Suzuki.
+
+        * UserInterface/Views/ContentView.js:
+        (WI.ContentView.createFromRepresentedObject):
+
 2019-02-15  Aaron Chu  <aaron_chu@apple.com>
 
         AX: Audit tab should have built-in accessibility tests.
index 959036b..29c617e 100644 (file)
@@ -83,10 +83,11 @@ WI.ContentView = class ContentView extends WI.View
             if (timelineType === WI.TimelineRecord.Type.RenderingFrame)
                 return new WI.RenderingFrameTimelineView(representedObject, extraArguments);
 
-            if (timelineType === WI.TimelineRecord.Type.CPU)
+            if (timelineType === WI.TimelineRecord.Type.CPU) {
                 if (WI.settings.experimentalEnableCPUUsageEnhancements.value)
                     return new WI.CPUTimelineView(representedObject, extraArguments);
                 return new WI.LegacyCPUTimelineView(representedObject, extraArguments);
+            }
 
             if (timelineType === WI.TimelineRecord.Type.Memory)
                 return new WI.MemoryTimelineView(representedObject, extraArguments);