| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 this._sectionsContainer = this.element.createChild("div"); | 55 this._sectionsContainer = this.element.createChild("div"); |
| 56 | 56 |
| 57 this._stylesPopoverHelper = new WebInspector.StylesPopoverHelper(); | 57 this._stylesPopoverHelper = new WebInspector.StylesPopoverHelper(); |
| 58 | 58 |
| 59 this._linkifier = new WebInspector.Linkifier(new WebInspector.Linkifier.Defa
ultCSSFormatter()); | 59 this._linkifier = new WebInspector.Linkifier(new WebInspector.Linkifier.Defa
ultCSSFormatter()); |
| 60 | 60 |
| 61 this.element.classList.add("styles-pane"); | 61 this.element.classList.add("styles-pane"); |
| 62 this.element.addEventListener("mousemove", this._mouseMovedOverElement.bind(
this), false); | 62 this.element.addEventListener("mousemove", this._mouseMovedOverElement.bind(
this), false); |
| 63 this._keyDownBound = this._keyDown.bind(this); | 63 this._keyDownBound = this._keyDown.bind(this); |
| 64 this._keyUpBound = this._keyUp.bind(this); | 64 this._keyUpBound = this._keyUp.bind(this); |
| 65 new WebInspector.PropertyChangeHighlighter(this); |
| 65 } | 66 } |
| 66 | 67 |
| 67 // Keep in sync with ComputedStyleConstants.h PseudoId enum. Array below contain
s pseudo id names for corresponding enum indexes. | 68 // Keep in sync with ComputedStyleConstants.h PseudoId enum. Array below contain
s pseudo id names for corresponding enum indexes. |
| 68 // First item is empty due to its artificial NOPSEUDO nature in the enum. | 69 // First item is empty due to its artificial NOPSEUDO nature in the enum. |
| 69 // FIXME: find a way of generating this mapping or getting it from combination o
f ComputedStyleConstants and CSSSelector.cpp at | 70 // FIXME: find a way of generating this mapping or getting it from combination o
f ComputedStyleConstants and CSSSelector.cpp at |
| 70 // runtime. | 71 // runtime. |
| 71 WebInspector.StylesSidebarPane.PseudoIdNames = [ | 72 WebInspector.StylesSidebarPane.PseudoIdNames = [ |
| 72 "", "first-line", "first-letter", "before", "after", "backdrop", "selection"
, "", "-webkit-scrollbar", | 73 "", "first-line", "first-letter", "before", "after", "backdrop", "selection"
, "", "-webkit-scrollbar", |
| 73 "-webkit-scrollbar-thumb", "-webkit-scrollbar-button", "-webkit-scrollbar-tr
ack", "-webkit-scrollbar-track-piece", | 74 "-webkit-scrollbar-thumb", "-webkit-scrollbar-button", "-webkit-scrollbar-tr
ack", "-webkit-scrollbar-track-piece", |
| 74 "-webkit-scrollbar-corner", "-webkit-resizer" | 75 "-webkit-scrollbar-corner", "-webkit-resizer" |
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 this._currentToolbarPane = this._animatedToolbarPane; | 841 this._currentToolbarPane = this._animatedToolbarPane; |
| 841 delete this._animatedToolbarPane; | 842 delete this._animatedToolbarPane; |
| 842 | 843 |
| 843 if (this._pendingWidget !== undefined) { | 844 if (this._pendingWidget !== undefined) { |
| 844 this._startToolbarPaneAnimation(this._pendingWidget); | 845 this._startToolbarPaneAnimation(this._pendingWidget); |
| 845 delete this._pendingWidget; | 846 delete this._pendingWidget; |
| 846 } | 847 } |
| 847 } | 848 } |
| 848 }, | 849 }, |
| 849 | 850 |
| 851 /** |
| 852 * @return {!Array<!WebInspector.SectionBlock>} |
| 853 */ |
| 854 sectionBlocks: function() |
| 855 { |
| 856 return this._sectionBlocks || []; |
| 857 }, |
| 858 |
| 850 __proto__: WebInspector.ElementsSidebarPane.prototype | 859 __proto__: WebInspector.ElementsSidebarPane.prototype |
| 851 } | 860 } |
| 852 | 861 |
| 853 /** | 862 /** |
| 854 * @param {string} placeholder | 863 * @param {string} placeholder |
| 855 * @param {!Element} container | 864 * @param {!Element} container |
| 856 * @param {function(?RegExp)} filterCallback | 865 * @param {function(?RegExp)} filterCallback |
| 857 * @return {!Element} | 866 * @return {!Element} |
| 858 */ | 867 */ |
| 859 WebInspector.StylesSidebarPane.createPropertyFilterElement = function(placeholde
r, container, filterCallback) | 868 WebInspector.StylesSidebarPane.createPropertyFilterElement = function(placeholde
r, container, filterCallback) |
| (...skipping 2381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3241 | 3250 |
| 3242 /** | 3251 /** |
| 3243 * @override | 3252 * @override |
| 3244 * @return {?WebInspector.ToolbarItem} | 3253 * @return {?WebInspector.ToolbarItem} |
| 3245 */ | 3254 */ |
| 3246 item: function() | 3255 item: function() |
| 3247 { | 3256 { |
| 3248 return this._button; | 3257 return this._button; |
| 3249 } | 3258 } |
| 3250 } | 3259 } |
| OLD | NEW |