| 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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 _updateRecordForHighlight(node) { | 1033 _updateRecordForHighlight(node) { |
| 1034 if (!this._visible) | 1034 if (!this._visible) |
| 1035 return null; | 1035 return null; |
| 1036 return this._updateRecords.get(node) || null; | 1036 return this._updateRecords.get(node) || null; |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 /** | 1039 /** |
| 1040 * @param {!Common.Event} event | 1040 * @param {!Common.Event} event |
| 1041 */ | 1041 */ |
| 1042 _documentUpdated(event) { | 1042 _documentUpdated(event) { |
| 1043 var inspectedRootDocument = event.data; | 1043 var domModel = /** @type {!SDK.DOMModel} */ (event.data); |
| 1044 var inspectedRootDocument = domModel.existingDocument(); |
| 1044 | 1045 |
| 1045 this._reset(); | 1046 this._reset(); |
| 1046 | 1047 |
| 1047 if (!inspectedRootDocument) | 1048 if (!inspectedRootDocument) |
| 1048 return; | 1049 return; |
| 1049 | 1050 |
| 1050 this.rootDOMNode = inspectedRootDocument; | 1051 this.rootDOMNode = inspectedRootDocument; |
| 1051 } | 1052 } |
| 1052 | 1053 |
| 1053 /** | 1054 /** |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1693 */ | 1694 */ |
| 1694 function resolved(node) { | 1695 function resolved(node) { |
| 1695 if (node) { | 1696 if (node) { |
| 1696 this.treeOutline._selectedDOMNode = node; | 1697 this.treeOutline._selectedDOMNode = node; |
| 1697 this.treeOutline._selectedNodeChanged(); | 1698 this.treeOutline._selectedNodeChanged(); |
| 1698 } | 1699 } |
| 1699 } | 1700 } |
| 1700 return true; | 1701 return true; |
| 1701 } | 1702 } |
| 1702 }; | 1703 }; |
| OLD | NEW |