| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:html'; | 5 import 'dart:html'; |
| 6 | 6 |
| 7 import 'package:observatory/app.dart'; | 7 import 'package:observatory/app.dart'; |
| 8 import 'package:observatory/service.dart'; | 8 import 'package:observatory/service.dart'; |
| 9 import 'package:observatory/src/elements/error_ref.dart'; | 9 import 'package:observatory/src/elements/error_ref.dart'; |
| 10 import 'package:observatory/src/elements/helpers/tag.dart'; | 10 import 'package:observatory/src/elements/helpers/tag.dart'; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 if (_error == null) { | 44 if (_error == null) { |
| 45 return; | 45 return; |
| 46 } | 46 } |
| 47 | 47 |
| 48 shadowRoot.children = [ | 48 shadowRoot.children = [ |
| 49 new StyleElement() | 49 new StyleElement() |
| 50 ..text = ''' | 50 ..text = ''' |
| 51 error-ref-wrapped > pre { | 51 error-ref-wrapped > pre { |
| 52 background-color: #f5f5f5; | 52 background-color: #f5f5f5; |
| 53 border: 1px solid #ccc; | 53 border: 1px solid #ccc; |
| 54 padding: 10px; | 54 padding-left: 10px; |
| 55 padding-right: 10px; |
| 55 font-family: consolas, courier, monospace; | 56 font-family: consolas, courier, monospace; |
| 56 font-size: 1em; | 57 font-size: 1em; |
| 57 line-height: 1.2em; | 58 line-height: 1.2em; |
| 58 white-space: pre; | 59 white-space: pre; |
| 59 } | 60 } |
| 60 ''', | 61 ''', |
| 61 new ErrorRefElement(_error, queue: ObservatoryApplication.app.queue) | 62 new ErrorRefElement(_error, queue: ObservatoryApplication.app.queue) |
| 62 ]; | 63 ]; |
| 63 } | 64 } |
| 64 } | 65 } |
| OLD | NEW |