Chromium Code Reviews| 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 this._sectionBlocks = []; | |
|
dgozman
2016/05/10 18:09:37
Annotate?
lushnikov
2016/05/10 20:16:39
Done.
| |
| 52 | |
| 51 WebInspector.targetManager.addModelListener(WebInspector.CSSModel, WebInspec tor.CSSModel.Events.LayoutEditorChange, this._onLayoutEditorChange, this); | 53 WebInspector.targetManager.addModelListener(WebInspector.CSSModel, WebInspec tor.CSSModel.Events.LayoutEditorChange, this._onLayoutEditorChange, this); |
| 52 } | 54 } |
| 53 | 55 |
| 54 /** | 56 /** |
| 55 * @param {!WebInspector.CSSProperty} property | 57 * @param {!WebInspector.CSSProperty} property |
| 56 * @return {!Element} | 58 * @return {!Element} |
| 57 */ | 59 */ |
| 58 WebInspector.StylesSidebarPane.createExclamationMark = function(property) | 60 WebInspector.StylesSidebarPane.createExclamationMark = function(property) |
| 59 { | 61 { |
| 60 var exclamationElement = createElement("label", "dt-icon-label"); | 62 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); | 3126 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, onNodeCha nged); |
| 3125 onNodeChanged(); | 3127 onNodeChanged(); |
| 3126 return button; | 3128 return button; |
| 3127 | 3129 |
| 3128 function onNodeChanged() | 3130 function onNodeChanged() |
| 3129 { | 3131 { |
| 3130 var node = WebInspector.context.flavor(WebInspector.DOMNode); | 3132 var node = WebInspector.context.flavor(WebInspector.DOMNode); |
| 3131 button.setEnabled(!!node); | 3133 button.setEnabled(!!node); |
| 3132 } | 3134 } |
| 3133 } | 3135 } |
| OLD | NEW |