| 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 | 375 |
| 376 var treeOutline = WebInspector.ElementsTreeOutline.forDOMModel(domModel)
; | 376 var treeOutline = WebInspector.ElementsTreeOutline.forDOMModel(domModel)
; |
| 377 treeOutline.rootDOMNode = inspectedRootDocument; | 377 treeOutline.rootDOMNode = inspectedRootDocument; |
| 378 | 378 |
| 379 if (!inspectedRootDocument) { | 379 if (!inspectedRootDocument) { |
| 380 if (this.isShowing()) | 380 if (this.isShowing()) |
| 381 domModel.requestDocument(); | 381 domModel.requestDocument(); |
| 382 return; | 382 return; |
| 383 } | 383 } |
| 384 | 384 |
| 385 WebInspector.domBreakpointsSidebarPane.restoreBreakpoints(domModel); | 385 WebInspector.domBreakpointsSidebarPane.restoreBreakpoints(domModel, insp
ectedRootDocument); |
| 386 | 386 |
| 387 /** | 387 /** |
| 388 * @this {WebInspector.ElementsPanel} | 388 * @this {WebInspector.ElementsPanel} |
| 389 * @param {?WebInspector.DOMNode} candidateFocusNode | 389 * @param {?WebInspector.DOMNode} candidateFocusNode |
| 390 */ | 390 */ |
| 391 function selectNode(candidateFocusNode) | 391 function selectNode(candidateFocusNode) |
| 392 { | 392 { |
| 393 if (!candidateFocusNode) | 393 if (!candidateFocusNode) |
| 394 candidateFocusNode = inspectedRootDocument.body || inspectedRoot
Document.documentElement; | 394 candidateFocusNode = inspectedRootDocument.body || inspectedRoot
Document.documentElement; |
| 395 | 395 |
| (...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 /** | 1115 /** |
| 1116 * @override | 1116 * @override |
| 1117 * @param {!WebInspector.DOMNode} node | 1117 * @param {!WebInspector.DOMNode} node |
| 1118 * @return {?{title: string, color: string}} | 1118 * @return {?{title: string, color: string}} |
| 1119 */ | 1119 */ |
| 1120 decorate: function(node) | 1120 decorate: function(node) |
| 1121 { | 1121 { |
| 1122 return { color: "orange", title: WebInspector.UIString("Element state: %
s", ":" + WebInspector.CSSModel.fromNode(node).pseudoState(node).join(", :")) }; | 1122 return { color: "orange", title: WebInspector.UIString("Element state: %
s", ":" + WebInspector.CSSModel.fromNode(node).pseudoState(node).join(", :")) }; |
| 1123 } | 1123 } |
| 1124 } | 1124 } |
| OLD | NEW |