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 2339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2350 | 2350 |
2351 var message = new WebInspector.ConsoleMessage( | 2351 var message = new WebInspector.ConsoleMessage( |
2352 WebInspector.ConsoleMessage.MessageSource.ConsoleAPI, | 2352 WebInspector.ConsoleMessage.MessageSource.ConsoleAPI, |
2353 WebInspector.ConsoleMessage.MessageLevel.Log, | 2353 WebInspector.ConsoleMessage.MessageLevel.Log, |
2354 "", | 2354 "", |
2355 WebInspector.ConsoleMessage.MessageType.Dir, | 2355 WebInspector.ConsoleMessage.MessageType.Dir, |
2356 undefined, | 2356 undefined, |
2357 undefined, | 2357 undefined, |
2358 undefined, | 2358 undefined, |
2359 undefined, | 2359 undefined, |
2360 undefined, | |
2361 [nodeObject]); | 2360 [nodeObject]); |
2362 WebInspector.console.addMessage(message); | 2361 WebInspector.console.addMessage(message); |
2363 WebInspector.console.show(); | 2362 WebInspector.console.show(); |
2364 } | 2363 } |
2365 }, | 2364 }, |
2366 | 2365 |
2367 _highlightSearchResults: function() | 2366 _highlightSearchResults: function() |
2368 { | 2367 { |
2369 if (!this._searchQuery || !this._searchHighlightsVisible) | 2368 if (!this._searchQuery || !this._searchHighlightsVisible) |
2370 return; | 2369 return; |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2659 var treeOutline = new WebInspector.ElementsTreeOutline(false, false); | 2658 var treeOutline = new WebInspector.ElementsTreeOutline(false, false); |
2660 treeOutline.rootDOMNode = /** @type {!WebInspector.DOMNode} */ (object); | 2659 treeOutline.rootDOMNode = /** @type {!WebInspector.DOMNode} */ (object); |
2661 treeOutline.element.classList.add("outline-disclosure"); | 2660 treeOutline.element.classList.add("outline-disclosure"); |
2662 if (!treeOutline.children[0].hasChildren) | 2661 if (!treeOutline.children[0].hasChildren) |
2663 treeOutline.element.classList.add("single-node"); | 2662 treeOutline.element.classList.add("single-node"); |
2664 treeOutline.setVisible(true); | 2663 treeOutline.setVisible(true); |
2665 treeOutline.element.treeElementForTest = treeOutline.children[0]; | 2664 treeOutline.element.treeElementForTest = treeOutline.children[0]; |
2666 return treeOutline.element; | 2665 return treeOutline.element; |
2667 } | 2666 } |
2668 } | 2667 } |
OLD | NEW |