diff options
Diffstat (limited to 'webkit/glue/devtools/js/devtools_host_stub.js')
-rw-r--r-- | webkit/glue/devtools/js/devtools_host_stub.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/webkit/glue/devtools/js/devtools_host_stub.js b/webkit/glue/devtools/js/devtools_host_stub.js index fd398bc..347847e 100644 --- a/webkit/glue/devtools/js/devtools_host_stub.js +++ b/webkit/glue/devtools/js/devtools_host_stub.js @@ -128,13 +128,17 @@ RemoteDomAgentStub.prototype.DiscardBindings = function() { RemoteDomAgentStub.prototype.GetNodeStyles = function(callId, id, authorOnly) { + var prop = function(name, value) { + return [name, false, false, '', value]; + }; + var styles = { - computedStyle: "display: none", - inlineStyle: "display: none", - styleAttributes: {attr: "display: none"}, - matchedCSSRules: [{selector: "S", cssText: "display: none", - parentStyleSheetHref: "http://localhost", - parentStyleSheetOwnerNodeName: "DIV"}] + computedStyle: [prop('display', 'none')], + inlineStyle: [prop('display', 'none')], + styleAttributes: {attr: [prop('display', 'none')]}, + matchedCSSRules: [{selector: 'S', style: [prop('display', 'none')], + parentStyleSheetHref: 'http://localhost', + parentStyleSheetOwnerNodeName: 'DIV'}] }; setTimeout(function() { RemoteDomAgent.DidGetNodeStyles(callId, styles); |