OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @extends {WebInspector.TimelineUIUtils} | 7 * @extends {WebInspector.TimelineUIUtils} |
8 */ | 8 */ |
9 WebInspector.TracingTimelineUIUtils = function() | 9 WebInspector.TracingTimelineUIUtils = function() |
10 { | 10 { |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 case recordTypes.RecalculateStyles: // We don't want to see default details. | 622 case recordTypes.RecalculateStyles: // We don't want to see default details. |
623 contentHelper.appendTextRow(WebInspector.UIString("Elements affected"),
event.args["elementCount"]); | 623 contentHelper.appendTextRow(WebInspector.UIString("Elements affected"),
event.args["elementCount"]); |
624 callStackLabel = WebInspector.UIString("Styles recalculation forced"); | 624 callStackLabel = WebInspector.UIString("Styles recalculation forced"); |
625 break; | 625 break; |
626 case recordTypes.Layout: | 626 case recordTypes.Layout: |
627 var beginData = event.args["beginData"]; | 627 var beginData = event.args["beginData"]; |
628 contentHelper.appendTextRow(WebInspector.UIString("Nodes that need layou
t"), beginData["dirtyObjects"]); | 628 contentHelper.appendTextRow(WebInspector.UIString("Nodes that need layou
t"), beginData["dirtyObjects"]); |
629 contentHelper.appendTextRow(WebInspector.UIString("Layout tree size"), b
eginData["totalObjects"]); | 629 contentHelper.appendTextRow(WebInspector.UIString("Layout tree size"), b
eginData["totalObjects"]); |
630 contentHelper.appendTextRow(WebInspector.UIString("Layout scope"), | 630 contentHelper.appendTextRow(WebInspector.UIString("Layout scope"), |
631 beginData["partialLayout"] ? WebInspector.UI
String("Partial") : WebInspector.UIString("Whole document")); | 631 beginData["partialLayout"] ? WebInspector.UI
String("Partial") : WebInspector.UIString("Whole document")); |
| 632 contentHelper.appendTextRow(WebInspector.UIString("Invalidation reasons"
), |
| 633 event.invalidations ? WebInspector.UIString(
event.invalidations) : WebInspector.UIString("Unknown")); |
632 callSiteStackTraceLabel = WebInspector.UIString("Layout invalidated"); | 634 callSiteStackTraceLabel = WebInspector.UIString("Layout invalidated"); |
633 callStackLabel = WebInspector.UIString("Layout forced"); | 635 callStackLabel = WebInspector.UIString("Layout forced"); |
634 relatedNodeLabel = WebInspector.UIString("Layout root"); | 636 relatedNodeLabel = WebInspector.UIString("Layout root"); |
635 break; | 637 break; |
636 case recordTypes.ConsoleTime: | 638 case recordTypes.ConsoleTime: |
637 contentHelper.appendTextRow(WebInspector.UIString("Message"), eventData[
"message"]); | 639 contentHelper.appendTextRow(WebInspector.UIString("Message"), eventData[
"message"]); |
638 break; | 640 break; |
639 case recordTypes.WebSocketCreate: | 641 case recordTypes.WebSocketCreate: |
640 case recordTypes.WebSocketSendHandshakeRequest: | 642 case recordTypes.WebSocketSendHandshakeRequest: |
641 case recordTypes.WebSocketReceiveHandshakeResponse: | 643 case recordTypes.WebSocketReceiveHandshakeResponse: |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 return result; | 806 return result; |
805 } | 807 } |
806 | 808 |
807 /** | 809 /** |
808 * @return {!WebInspector.TracingTimelineModel.Filter} | 810 * @return {!WebInspector.TracingTimelineModel.Filter} |
809 */ | 811 */ |
810 WebInspector.TracingTimelineUIUtils.hiddenEventsFilter = function() | 812 WebInspector.TracingTimelineUIUtils.hiddenEventsFilter = function() |
811 { | 813 { |
812 return new WebInspector.TracingTimelineModel.InclusiveEventNameFilter(WebIns
pector.TracingTimelineUIUtils._visibleTypes()); | 814 return new WebInspector.TracingTimelineModel.InclusiveEventNameFilter(WebIns
pector.TracingTimelineUIUtils._visibleTypes()); |
813 } | 815 } |
OLD | NEW |