Skip to content

Instantly share code, notes, and snippets.

@aslushnikov
Created June 2, 2015 15:59
Show Gist options
  • Select an option

  • Save aslushnikov/306dab59fba4be213e60 to your computer and use it in GitHub Desktop.

Select an option

Save aslushnikov/306dab59fba4be213e60 to your computer and use it in GitHub Desktop.
WebInspector.SharedSidebarModel.Events = {
ComputedStyleChanged: "ComputedStyleChanged",
MatchedStyleChanged: "MatchedStyleChanged"
}
WebInspector.SharedSidebarModel.prototype = {
// current
node: function() {}, // DOMNode
// fetching
fetchComputedStyle: function() {}, // <DOMNode, CSSStyleDeclaration>
fetchMatchedStyle: function() {}, // <matchedCascade, pseudoCascadeS
// editing
editRuleProperty: function(property, newText) { },
editRuleSelector: function(rule) { },
insertNewRule: function(styleSheetId, text, insertionLocation) { },
// querying
fetchActivePropertyWithName: function() {}, // ?CSSProperty
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment