diff options
Diffstat (limited to 'webkit/glue/devtools/js/inject.js')
-rw-r--r-- | webkit/glue/devtools/js/inject.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/webkit/glue/devtools/js/inject.js b/webkit/glue/devtools/js/inject.js index a6d7d0b..83c94d5 100644 --- a/webkit/glue/devtools/js/inject.js +++ b/webkit/glue/devtools/js/inject.js @@ -203,6 +203,8 @@ devtools.Injected.prototype.serializeStyle_ = function(style, opt_bind) { } var result = [ id, + style.width, + style.height, style.__disabledProperties, style.__disabledPropertyValues, style.__disabledPropertyPriorities @@ -339,6 +341,20 @@ devtools.Injected.prototype.applyStyleText = function(node, styleId, /** + * Sets style property with given name to a value. + * @param {Node} node Node to get prorotypes for. + * @param {string} name Style element name. + * @param {string} value Value. + * @return {boolean} True iff style has been edited successfully. + */ +devtools.Injected.prototype.setStyleProperty = function(node, + name, value) { + node.style.setProperty(name, value, ""); + return true; +}; + + +/** * Taken from utilities.js as is for injected evaluation. */ devtools.Injected.prototype.getLonghandProperties_ = function(style, |