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 26 matching lines...) Expand all Loading... |
37 WebInspector.ElementsPanel = function() | 37 WebInspector.ElementsPanel = function() |
38 { | 38 { |
39 WebInspector.Panel.call(this, "elements"); | 39 WebInspector.Panel.call(this, "elements"); |
40 this.registerRequiredCSS("elementsPanel.css"); | 40 this.registerRequiredCSS("elementsPanel.css"); |
41 this.setHideOnDetach(); | 41 this.setHideOnDetach(); |
42 | 42 |
43 this._splitView = new WebInspector.SplitView(true, true, "elementsPanelSplit
ViewState", 325, 325); | 43 this._splitView = new WebInspector.SplitView(true, true, "elementsPanelSplit
ViewState", 325, 325); |
44 this._splitView.addEventListener(WebInspector.SplitView.Events.SidebarSizeCh
anged, this._updateTreeOutlineVisibleWidth.bind(this)); | 44 this._splitView.addEventListener(WebInspector.SplitView.Events.SidebarSizeCh
anged, this._updateTreeOutlineVisibleWidth.bind(this)); |
45 this._splitView.show(this.element); | 45 this._splitView.show(this.element); |
46 | 46 |
47 this._searchableView = new WebInspector.SearchableView(this); | 47 this._searchableView = new WebInspector.SearchableView(this, false); |
48 this._searchableView.setMinimumSize(25, 19); | 48 this._searchableView.setMinimumSize(25, 19); |
49 this._searchableView.show(this._splitView.mainElement()); | 49 this._searchableView.show(this._splitView.mainElement()); |
50 var stackElement = this._searchableView.element; | 50 var stackElement = this._searchableView.element; |
51 | 51 |
52 this.contentElement = stackElement.createChild("div"); | 52 this.contentElement = stackElement.createChild("div"); |
53 this.contentElement.id = "elements-content"; | 53 this.contentElement.id = "elements-content"; |
54 this.contentElement.classList.add("outline-disclosure"); | 54 this.contentElement.classList.add("outline-disclosure"); |
55 this.contentElement.classList.add("source-code"); | 55 this.contentElement.classList.add("source-code"); |
56 if (!WebInspector.settings.domWordWrap.get()) | 56 if (!WebInspector.settings.domWordWrap.get()) |
57 this.contentElement.classList.add("nowrap"); | 57 this.contentElement.classList.add("nowrap"); |
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1533 | 1533 |
1534 WebInspector.ElementsPanelFactory.prototype = { | 1534 WebInspector.ElementsPanelFactory.prototype = { |
1535 /** | 1535 /** |
1536 * @return {!WebInspector.Panel} | 1536 * @return {!WebInspector.Panel} |
1537 */ | 1537 */ |
1538 createPanel: function() | 1538 createPanel: function() |
1539 { | 1539 { |
1540 return WebInspector.ElementsPanel.instance(); | 1540 return WebInspector.ElementsPanel.instance(); |
1541 } | 1541 } |
1542 } | 1542 } |
OLD | NEW |