Last active
August 29, 2015 14:07
-
-
Save simonlindholm/b92358e80d0bea2dc24a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/browser/devtools/styleinspector/rule-view.js b/browser/devtools/styleinspector/rule-view.js | |
index fb41f9a..e4ae10b 100644 | |
--- a/browser/devtools/styleinspector/rule-view.js | |
+++ b/browser/devtools/styleinspector/rule-view.js | |
@@ -1813,17 +1813,17 @@ CssRuleView.prototype = { | |
* @param {Rule} aRule | |
* The Rule object we're editing. | |
* @constructor | |
*/ | |
function RuleEditor(aRuleView, aRule) { | |
this.ruleView = aRuleView; | |
this.doc = this.ruleView.doc; | |
this.rule = aRule; | |
- this.isEditable = !aRule.isSystem; | |
+ this.isEditable = true; | |
// Flag that blocks updates of the selector and properties when it is | |
// being edited | |
this.isEditing = false; | |
this._onNewProperty = this._onNewProperty.bind(this); | |
this._newPropertyDestroy = this._newPropertyDestroy.bind(this); | |
this._onSelectorDone = this._onSelectorDone.bind(this); | |
@@ -1853,19 +1853,16 @@ RuleEditor.prototype = { | |
// span to be placed absolutely against. | |
this.element.style.position = "relative"; | |
// Add the source link. | |
let source = createChild(this.element, "div", { | |
class: "ruleview-rule-source theme-link" | |
}); | |
source.addEventListener("click", function() { | |
- if (source.hasAttribute("unselectable")) { | |
- return; | |
- } | |
let rule = this.rule.domRule; | |
let evt = this.doc.createEvent("CustomEvent"); | |
evt.initCustomEvent("CssRuleViewCSSLinkClicked", true, false, { | |
rule: rule, | |
}); | |
this.element.dispatchEvent(evt); | |
}.bind(this)); | |
let sourceLabel = this.doc.createElementNS(XUL_NS, "label"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment