| 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 22 matching lines...) Expand all Loading... |
| 33 WebInspector.StylesSidebarPane = class extends WebInspector.ElementsSidebarPane
{ | 33 WebInspector.StylesSidebarPane = class extends WebInspector.ElementsSidebarPane
{ |
| 34 constructor() { | 34 constructor() { |
| 35 super(); | 35 super(); |
| 36 this.setMinimumSize(96, 26); | 36 this.setMinimumSize(96, 26); |
| 37 | 37 |
| 38 WebInspector.moduleSetting('colorFormat').addChangeListener(this.update.bind
(this)); | 38 WebInspector.moduleSetting('colorFormat').addChangeListener(this.update.bind
(this)); |
| 39 WebInspector.moduleSetting('textEditorIndent').addChangeListener(this.update
.bind(this)); | 39 WebInspector.moduleSetting('textEditorIndent').addChangeListener(this.update
.bind(this)); |
| 40 | 40 |
| 41 this._sectionsContainer = this.element.createChild('div'); | 41 this._sectionsContainer = this.element.createChild('div'); |
| 42 this._swatchPopoverHelper = new WebInspector.SwatchPopoverHelper(); | 42 this._swatchPopoverHelper = new WebInspector.SwatchPopoverHelper(); |
| 43 this._linkifier = new WebInspector.Linkifier(WebInspector.StylesSidebarPane.
_maxLinkLength); | 43 this._linkifier = new WebInspector.Linkifier(WebInspector.StylesSidebarPane.
_maxLinkLength, /* useLinkDecorator */ true); |
| 44 | 44 |
| 45 this.element.classList.add('styles-pane'); | 45 this.element.classList.add('styles-pane'); |
| 46 | 46 |
| 47 /** @type {!Array<!WebInspector.SectionBlock>} */ | 47 /** @type {!Array<!WebInspector.SectionBlock>} */ |
| 48 this._sectionBlocks = []; | 48 this._sectionBlocks = []; |
| 49 WebInspector.StylesSidebarPane._instance = this; | 49 WebInspector.StylesSidebarPane._instance = this; |
| 50 | 50 |
| 51 WebInspector.targetManager.addModelListener( | 51 WebInspector.targetManager.addModelListener( |
| 52 WebInspector.CSSModel, WebInspector.CSSModel.Events.LayoutEditorChange,
this._onLayoutEditorChange, this); | 52 WebInspector.CSSModel, WebInspector.CSSModel.Events.LayoutEditorChange,
this._onLayoutEditorChange, this); |
| 53 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this.forc
eUpdate, this); | 53 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this.forc
eUpdate, this); |
| (...skipping 3017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3071 } | 3071 } |
| 3072 | 3072 |
| 3073 /** | 3073 /** |
| 3074 * @override | 3074 * @override |
| 3075 * @return {!WebInspector.ToolbarItem} | 3075 * @return {!WebInspector.ToolbarItem} |
| 3076 */ | 3076 */ |
| 3077 item() { | 3077 item() { |
| 3078 return this._button; | 3078 return this._button; |
| 3079 } | 3079 } |
| 3080 }; | 3080 }; |
| OLD | NEW |