| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 var treeOutline = this._treeOutlines[i]; | 316 var treeOutline = this._treeOutlines[i]; |
| 317 treeOutline.setVisible(true); | 317 treeOutline.setVisible(true); |
| 318 | 318 |
| 319 if (!treeOutline.rootDOMNode) { | 319 if (!treeOutline.rootDOMNode) { |
| 320 if (treeOutline.domModel().existingDocument()) | 320 if (treeOutline.domModel().existingDocument()) |
| 321 this._documentUpdated(treeOutline.domModel(), treeOutline.domModel().e
xistingDocument()); | 321 this._documentUpdated(treeOutline.domModel(), treeOutline.domModel().e
xistingDocument()); |
| 322 else | 322 else |
| 323 treeOutline.domModel().requestDocument(); | 323 treeOutline.domModel().requestDocument(); |
| 324 } | 324 } |
| 325 } | 325 } |
| 326 this.focus(); | |
| 327 } | 326 } |
| 328 | 327 |
| 329 /** | 328 /** |
| 330 * @override | 329 * @override |
| 331 */ | 330 */ |
| 332 willHide() { | 331 willHide() { |
| 333 UI.context.setFlavor(Elements.ElementsPanel, null); | 332 UI.context.setFlavor(Elements.ElementsPanel, null); |
| 334 | 333 |
| 335 SDK.OverlayModel.hideDOMNodeHighlight(); | 334 SDK.OverlayModel.hideDOMNodeHighlight(); |
| 336 for (var i = 0; i < this._treeOutlines.length; ++i) { | 335 for (var i = 0; i < this._treeOutlines.length; ++i) { |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 * @param {!SDK.DOMNode} node | 1086 * @param {!SDK.DOMNode} node |
| 1088 * @return {?{title: string, color: string}} | 1087 * @return {?{title: string, color: string}} |
| 1089 */ | 1088 */ |
| 1090 decorate(node) { | 1089 decorate(node) { |
| 1091 return { | 1090 return { |
| 1092 color: 'orange', | 1091 color: 'orange', |
| 1093 title: Common.UIString('Element state: %s', ':' + node.domModel().cssModel
().pseudoState(node).join(', :')) | 1092 title: Common.UIString('Element state: %s', ':' + node.domModel().cssModel
().pseudoState(node).join(', :')) |
| 1094 }; | 1093 }; |
| 1095 } | 1094 } |
| 1096 }; | 1095 }; |
| OLD | NEW |