| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 this._sectionsContainer = this.element.createChild("div"); | 42 this._sectionsContainer = this.element.createChild("div"); |
| 43 this._stylesPopoverHelper = new WebInspector.StylesPopoverHelper(); | 43 this._stylesPopoverHelper = new WebInspector.StylesPopoverHelper(); |
| 44 this._linkifier = new WebInspector.Linkifier(new WebInspector.Linkifier.Defa
ultCSSFormatter()); | 44 this._linkifier = new WebInspector.Linkifier(new WebInspector.Linkifier.Defa
ultCSSFormatter()); |
| 45 | 45 |
| 46 this.element.classList.add("styles-pane"); | 46 this.element.classList.add("styles-pane"); |
| 47 this.element.addEventListener("mousemove", this._mouseMovedOverElement.bind(
this), false); | 47 this.element.addEventListener("mousemove", this._mouseMovedOverElement.bind(
this), false); |
| 48 this._keyDownBound = this._keyDown.bind(this); | 48 this._keyDownBound = this._keyDown.bind(this); |
| 49 this._keyUpBound = this._keyUp.bind(this); | 49 this._keyUpBound = this._keyUp.bind(this); |
| 50 | 50 |
| 51 /** @type {!Array<!WebInspector.SectionBlock>} */ |
| 52 this._sectionBlocks = []; |
| 53 |
| 51 WebInspector.targetManager.addModelListener(WebInspector.CSSModel, WebInspec
tor.CSSModel.Events.LayoutEditorChange, this._onLayoutEditorChange, this); | 54 WebInspector.targetManager.addModelListener(WebInspector.CSSModel, WebInspec
tor.CSSModel.Events.LayoutEditorChange, this._onLayoutEditorChange, this); |
| 52 } | 55 } |
| 53 | 56 |
| 54 /** | 57 /** |
| 55 * @param {!WebInspector.CSSProperty} property | 58 * @param {!WebInspector.CSSProperty} property |
| 56 * @return {!Element} | 59 * @return {!Element} |
| 57 */ | 60 */ |
| 58 WebInspector.StylesSidebarPane.createExclamationMark = function(property) | 61 WebInspector.StylesSidebarPane.createExclamationMark = function(property) |
| 59 { | 62 { |
| 60 var exclamationElement = createElement("label", "dt-icon-label"); | 63 var exclamationElement = createElement("label", "dt-icon-label"); |
| (...skipping 3063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3124 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, onNodeCha
nged); | 3127 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, onNodeCha
nged); |
| 3125 onNodeChanged(); | 3128 onNodeChanged(); |
| 3126 return button; | 3129 return button; |
| 3127 | 3130 |
| 3128 function onNodeChanged() | 3131 function onNodeChanged() |
| 3129 { | 3132 { |
| 3130 var node = WebInspector.context.flavor(WebInspector.DOMNode); | 3133 var node = WebInspector.context.flavor(WebInspector.DOMNode); |
| 3131 button.setEnabled(!!node); | 3134 button.setEnabled(!!node); |
| 3132 } | 3135 } |
| 3133 } | 3136 } |
| OLD | NEW |