| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 */ | 45 */ |
| 46 WebInspector.ElementsPanel = function() | 46 WebInspector.ElementsPanel = function() |
| 47 { | 47 { |
| 48 WebInspector.Panel.call(this, "elements"); | 48 WebInspector.Panel.call(this, "elements"); |
| 49 this.registerRequiredCSS("breadcrumbList.css"); | 49 this.registerRequiredCSS("breadcrumbList.css"); |
| 50 this.registerRequiredCSS("elementsPanel.css"); | 50 this.registerRequiredCSS("elementsPanel.css"); |
| 51 this.registerRequiredCSS("textPrompt.css"); | 51 this.registerRequiredCSS("textPrompt.css"); |
| 52 this.setHideOnDetach(); | 52 this.setHideOnDetach(); |
| 53 | 53 |
| 54 this._splitView = new WebInspector.SplitView(true, true, "elementsPanelSplit
ViewState", 325, 325); | 54 this._splitView = new WebInspector.SplitView(true, true, "elementsPanelSplit
ViewState", 325, 325); |
| 55 this._splitView.setSidebarElementConstraints(25, 25); | |
| 56 this._splitView.setMainElementConstraints(25, 19); | |
| 57 this._splitView.addEventListener(WebInspector.SplitView.Events.SidebarSizeCh
anged, this._updateTreeOutlineVisibleWidth.bind(this)); | 55 this._splitView.addEventListener(WebInspector.SplitView.Events.SidebarSizeCh
anged, this._updateTreeOutlineVisibleWidth.bind(this)); |
| 58 this._splitView.show(this.element); | 56 this._splitView.show(this.element); |
| 59 | 57 |
| 60 this._searchableView = new WebInspector.SearchableView(this); | 58 this._searchableView = new WebInspector.SearchableView(this); |
| 59 this._searchableView.setMinimumSize(25, 19); |
| 61 this._searchableView.show(this._splitView.mainElement()); | 60 this._searchableView.show(this._splitView.mainElement()); |
| 62 var stackElement = this._searchableView.element; | 61 var stackElement = this._searchableView.element; |
| 63 | 62 |
| 64 this.contentElement = stackElement.createChild("div"); | 63 this.contentElement = stackElement.createChild("div"); |
| 65 this.contentElement.id = "elements-content"; | 64 this.contentElement.id = "elements-content"; |
| 66 this.contentElement.classList.add("outline-disclosure"); | 65 this.contentElement.classList.add("outline-disclosure"); |
| 67 this.contentElement.classList.add("source-code"); | 66 this.contentElement.classList.add("source-code"); |
| 68 if (!WebInspector.settings.domWordWrap.get()) | 67 if (!WebInspector.settings.domWordWrap.get()) |
| 69 this.contentElement.classList.add("nowrap"); | 68 this.contentElement.classList.add("nowrap"); |
| 70 WebInspector.settings.domWordWrap.addChangeListener(this._domWordWrapSetting
Changed.bind(this)); | 69 WebInspector.settings.domWordWrap.addChangeListener(this._domWordWrapSetting
Changed.bind(this)); |
| (...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1364 return; | 1363 return; |
| 1365 | 1364 |
| 1366 if (WebInspector.inspectElementModeController && WebInspector.inspectEle
mentModeController.enabled()) { | 1365 if (WebInspector.inspectElementModeController && WebInspector.inspectEle
mentModeController.enabled()) { |
| 1367 InspectorFrontendHost.bringToFront(); | 1366 InspectorFrontendHost.bringToFront(); |
| 1368 WebInspector.inspectElementModeController.disable(); | 1367 WebInspector.inspectElementModeController.disable(); |
| 1369 } | 1368 } |
| 1370 | 1369 |
| 1371 /** @type {!WebInspector.ElementsPanel} */ (WebInspector.inspectorView.p
anel("elements")).revealAndSelectNode(node.id); | 1370 /** @type {!WebInspector.ElementsPanel} */ (WebInspector.inspectorView.p
anel("elements")).revealAndSelectNode(node.id); |
| 1372 } | 1371 } |
| 1373 } | 1372 } |
| OLD | NEW |