OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2014 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 | 7 |
8 <script> | 8 <script> |
9 'use strict'; | 9 'use strict'; |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 let panicElement = undefined; | 72 let panicElement = undefined; |
73 const rawPanicMessages = []; | 73 const rawPanicMessages = []; |
74 function showPanicElementIfNeeded() { | 74 function showPanicElementIfNeeded() { |
75 if (panicElement) return; | 75 if (panicElement) return; |
76 | 76 |
77 const panicOverlay = document.createElement('div'); | 77 const panicOverlay = document.createElement('div'); |
78 panicOverlay.style.backgroundColor = 'white'; | 78 panicOverlay.style.backgroundColor = 'white'; |
79 panicOverlay.style.border = '3px solid red'; | 79 panicOverlay.style.border = '3px solid red'; |
80 panicOverlay.style.boxSizing = 'border-box'; | 80 panicOverlay.style.boxSizing = 'border-box'; |
81 panicOverlay.style.color = 'black'; | 81 panicOverlay.style.color = 'black'; |
82 panicOverlay.style.display = '-webkit-flex'; | 82 panicOverlay.style.display = 'flex'; |
83 panicOverlay.style.height = '100%'; | 83 panicOverlay.style.height = '100%'; |
84 panicOverlay.style.left = 0; | 84 panicOverlay.style.left = 0; |
85 panicOverlay.style.padding = '8px'; | 85 panicOverlay.style.padding = '8px'; |
86 panicOverlay.style.position = 'fixed'; | 86 panicOverlay.style.position = 'fixed'; |
87 panicOverlay.style.top = 0; | 87 panicOverlay.style.top = 0; |
88 panicOverlay.style.webkitFlexDirection = 'column'; | 88 panicOverlay.style.webkitFlexDirection = 'column'; |
89 panicOverlay.style.width = '100%'; | 89 panicOverlay.style.width = '100%'; |
90 | 90 |
91 panicElement = document.createElement('div'); | 91 panicElement = document.createElement('div'); |
92 panicElement.style.webkitFlex = '1 1 auto'; | 92 panicElement.style.webkitFlex = '1 1 auto'; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 isDefined, | 181 isDefined, |
182 | 182 |
183 showPanic, | 183 showPanic, |
184 hasPanic, | 184 hasPanic, |
185 getPanicText, | 185 getPanicText, |
186 }; | 186 }; |
187 })(); | 187 })(); |
188 | 188 |
189 tr.initialize(); | 189 tr.initialize(); |
190 </script> | 190 </script> |
OLD | NEW |