diff options
Diffstat (limited to 'webkit/glue/devtools/js/devtools_host_stub.js')
-rw-r--r-- | webkit/glue/devtools/js/devtools_host_stub.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/webkit/glue/devtools/js/devtools_host_stub.js b/webkit/glue/devtools/js/devtools_host_stub.js index 73b290e..6bc9690 100644 --- a/webkit/glue/devtools/js/devtools_host_stub.js +++ b/webkit/glue/devtools/js/devtools_host_stub.js @@ -127,6 +127,21 @@ RemoteDomAgentStub.prototype.DiscardBindings = function() { }; +RemoteDomAgentStub.prototype.GetNodeStyles = function(callId, id, authorOnly) { + var styles = { + computedStyle: "display: none", + inlineStyle: "display: none", + styleAttributes: {attr: "display: none"}, + matchedCSSRules: [{selector: "S", cssText: "display: none", + parentStyleSheetHref: "http://localhost", + parentStyleSheetOwnerNodeName: "DIV"}] + }; + setTimeout(function() { + RemoteDomAgent.DidGetNodeStyles(callId, styles); + }, 0); +}; + + /** * @constructor */ |