| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 this._stylesPopoverHelper = new WebInspector.StylesPopoverHelper(); | 80 this._stylesPopoverHelper = new WebInspector.StylesPopoverHelper(); |
| 81 | 81 |
| 82 this._linkifier = new WebInspector.Linkifier(new WebInspector.Linkifier.Defa
ultCSSFormatter()); | 82 this._linkifier = new WebInspector.Linkifier(new WebInspector.Linkifier.Defa
ultCSSFormatter()); |
| 83 | 83 |
| 84 this.element.classList.add("styles-pane"); | 84 this.element.classList.add("styles-pane"); |
| 85 this.element.addEventListener("mousemove", this._mouseMovedOverElement.bind(
this), false); | 85 this.element.addEventListener("mousemove", this._mouseMovedOverElement.bind(
this), false); |
| 86 this._keyDownBound = this._keyDown.bind(this); | 86 this._keyDownBound = this._keyDown.bind(this); |
| 87 this._keyUpBound = this._keyUp.bind(this); | 87 this._keyUpBound = this._keyUp.bind(this); |
| 88 } | 88 } |
| 89 | 89 |
| 90 // Keep in sync with LayoutStyleConstants.h PseudoId enum. Array below contains
pseudo id names for corresponding enum indexes. | 90 // Keep in sync with ComputedStyleConstants.h PseudoId enum. Array below contain
s pseudo id names for corresponding enum indexes. |
| 91 // First item is empty due to its artificial NOPSEUDO nature in the enum. | 91 // First item is empty due to its artificial NOPSEUDO nature in the enum. |
| 92 // FIXME: find a way of generating this mapping or getting it from combination o
f LayoutStyleConstants and CSSSelector.cpp at | 92 // FIXME: find a way of generating this mapping or getting it from combination o
f ComputedStyleConstants and CSSSelector.cpp at |
| 93 // runtime. | 93 // runtime. |
| 94 WebInspector.StylesSidebarPane.PseudoIdNames = [ | 94 WebInspector.StylesSidebarPane.PseudoIdNames = [ |
| 95 "", "first-line", "first-letter", "before", "after", "backdrop", "selection"
, "", "-webkit-scrollbar", | 95 "", "first-line", "first-letter", "before", "after", "backdrop", "selection"
, "", "-webkit-scrollbar", |
| 96 "-webkit-scrollbar-thumb", "-webkit-scrollbar-button", "-webkit-scrollbar-tr
ack", "-webkit-scrollbar-track-piece", | 96 "-webkit-scrollbar-thumb", "-webkit-scrollbar-button", "-webkit-scrollbar-tr
ack", "-webkit-scrollbar-track-piece", |
| 97 "-webkit-scrollbar-corner", "-webkit-resizer" | 97 "-webkit-scrollbar-corner", "-webkit-resizer" |
| 98 ]; | 98 ]; |
| 99 | 99 |
| 100 /** | 100 /** |
| 101 * @enum {string} | 101 * @enum {string} |
| 102 */ | 102 */ |
| (...skipping 3441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3544 | 3544 |
| 3545 WebInspector.StylesSidebarPane.MatchedRulesPayload.prototype = { | 3545 WebInspector.StylesSidebarPane.MatchedRulesPayload.prototype = { |
| 3546 /** | 3546 /** |
| 3547 * @return {boolean} | 3547 * @return {boolean} |
| 3548 */ | 3548 */ |
| 3549 fulfilled: function() | 3549 fulfilled: function() |
| 3550 { | 3550 { |
| 3551 return !!(this.matchedCSSRules && this.pseudoElements && this.inherited)
; | 3551 return !!(this.matchedCSSRules && this.pseudoElements && this.inherited)
; |
| 3552 } | 3552 } |
| 3553 } | 3553 } |
| OLD | NEW |