| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 } | 323 } |
| 324 this.focus(); | 324 this.focus(); |
| 325 } | 325 } |
| 326 | 326 |
| 327 /** | 327 /** |
| 328 * @override | 328 * @override |
| 329 */ | 329 */ |
| 330 willHide() { | 330 willHide() { |
| 331 UI.context.setFlavor(Elements.ElementsPanel, null); | 331 UI.context.setFlavor(Elements.ElementsPanel, null); |
| 332 | 332 |
| 333 SDK.OverlayModel.hideDOMNodeHighlight(); | 333 SDK.DOMModel.hideDOMNodeHighlight(); |
| 334 for (var i = 0; i < this._treeOutlines.length; ++i) { | 334 for (var i = 0; i < this._treeOutlines.length; ++i) { |
| 335 var treeOutline = this._treeOutlines[i]; | 335 var treeOutline = this._treeOutlines[i]; |
| 336 treeOutline.setVisible(false); | 336 treeOutline.setVisible(false); |
| 337 // Detach heavy component on hide | 337 // Detach heavy component on hide |
| 338 this._contentElement.removeChild(treeOutline.element); | 338 this._contentElement.removeChild(treeOutline.element); |
| 339 var header = this._treeOutlineHeaders.get(treeOutline); | 339 var header = this._treeOutlineHeaders.get(treeOutline); |
| 340 if (header) | 340 if (header) |
| 341 this._contentElement.removeChild(header); | 341 this._contentElement.removeChild(header); |
| 342 } | 342 } |
| 343 if (this._popoverHelper) | 343 if (this._popoverHelper) |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1090 * @param {!SDK.DOMNode} node | 1090 * @param {!SDK.DOMNode} node |
| 1091 * @return {?{title: string, color: string}} | 1091 * @return {?{title: string, color: string}} |
| 1092 */ | 1092 */ |
| 1093 decorate(node) { | 1093 decorate(node) { |
| 1094 return { | 1094 return { |
| 1095 color: 'orange', | 1095 color: 'orange', |
| 1096 title: Common.UIString('Element state: %s', ':' + node.domModel().cssModel
().pseudoState(node).join(', :')) | 1096 title: Common.UIString('Element state: %s', ':' + node.domModel().cssModel
().pseudoState(node).join(', :')) |
| 1097 }; | 1097 }; |
| 1098 } | 1098 } |
| 1099 }; | 1099 }; |
| OLD | NEW |