Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(704)

Unified Diff: runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart

Issue 2298563002: Removed const from classes arrays in Observatory (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart
diff --git a/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart b/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart
index 57c85a9aba6701717409444bba7200ae5309bc0e..6c4b257bdc174365333f190dafffd34bd8048b15 100644
--- a/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart
+++ b/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart
@@ -117,18 +117,18 @@ class CpuProfileVirtualTreeElement extends HtmlElement implements Renderable {
static Element _createRow(toggle) {
return new DivElement()
- ..classes = const ['tree-item']
+ ..classes = ['tree-item']
..children = [
- new SpanElement()..classes = const ['inclusive']
+ new SpanElement()..classes = ['inclusive']
..title = 'global % on stack',
- new SpanElement()..classes = const ['exclusive']
+ new SpanElement()..classes = ['exclusive']
..title = 'global % executing',
- new SpanElement()..classes = const ['lines'],
- new ButtonElement()..classes = const ['expander']
+ new SpanElement()..classes = ['lines'],
+ new ButtonElement()..classes = ['expander']
..onClick.listen((_) => toggle(autoToggleSingleChildNodes: true)),
- new SpanElement()..classes = const ['percentage']
+ new SpanElement()..classes = ['percentage']
..title = 'tree node %',
- new SpanElement()..classes = const ['name']
+ new SpanElement()..classes = ['name']
];
}
@@ -150,7 +150,7 @@ class CpuProfileVirtualTreeElement extends HtmlElement implements Renderable {
item.percentage);
element.children[5] = new FunctionRefElement(_isolate,
item.profileFunction.function, queue: _r.queue)
- ..classes = const ['name'];
+ ..classes = ['name'];
}
void _updateCodeRow(HtmlElement element, M.CodeCallTreeNode item, int depth) {
@@ -168,7 +168,7 @@ class CpuProfileVirtualTreeElement extends HtmlElement implements Renderable {
item.percentage);
element.children[5] = new CodeRefElement(_isolate,
item.profileCode.code, queue: _r.queue)
- ..classes = const ['name'];
+ ..classes = ['name'];
}
static _updateLines(List<Element> lines, int n) {
« no previous file with comments | « runtime/observatory/lib/src/elements/context_view.dart ('k') | runtime/observatory/lib/src/elements/cpu_profile_table.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698