| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); |
| 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", "source-code"); | |
| 55 if (!WebInspector.settings.domWordWrap.get()) | 54 if (!WebInspector.settings.domWordWrap.get()) |
| 56 this.contentElement.classList.add("nowrap"); | 55 this.contentElement.classList.add("nowrap"); |
| 57 WebInspector.settings.domWordWrap.addChangeListener(this._domWordWrapSetting
Changed.bind(this)); | 56 WebInspector.settings.domWordWrap.addChangeListener(this._domWordWrapSetting
Changed.bind(this)); |
| 58 | 57 |
| 59 this._splitView.sidebarElement().addEventListener("contextmenu", this._sideb
arContextMenuEventFired.bind(this), false); | 58 this._splitView.sidebarElement().addEventListener("contextmenu", this._sideb
arContextMenuEventFired.bind(this), false); |
| 60 | 59 |
| 61 var crumbsContainer = stackElement.createChild("div"); | 60 var crumbsContainer = stackElement.createChild("div"); |
| 62 crumbsContainer.id = "elements-crumbs"; | 61 crumbsContainer.id = "elements-crumbs"; |
| 63 this.crumbsElement = crumbsContainer.createChild("div", "crumbs"); | 62 this.crumbsElement = crumbsContainer.createChild("div", "crumbs"); |
| 64 this.crumbsElement.addEventListener("mousemove", this._mouseMovedInCrumbs.bi
nd(this), false); | 63 this.crumbsElement.addEventListener("mousemove", this._mouseMovedInCrumbs.bi
nd(this), false); |
| (...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1532 | 1531 |
| 1533 WebInspector.ElementsPanelFactory.prototype = { | 1532 WebInspector.ElementsPanelFactory.prototype = { |
| 1534 /** | 1533 /** |
| 1535 * @return {!WebInspector.Panel} | 1534 * @return {!WebInspector.Panel} |
| 1536 */ | 1535 */ |
| 1537 createPanel: function() | 1536 createPanel: function() |
| 1538 { | 1537 { |
| 1539 return WebInspector.ElementsPanel.instance(); | 1538 return WebInspector.ElementsPanel.instance(); |
| 1540 } | 1539 } |
| 1541 } | 1540 } |
| OLD | NEW |