Index: sky/framework/inspector/css-agent.sky |
diff --git a/sky/framework/inspector/css-agent.sky b/sky/framework/inspector/css-agent.sky |
deleted file mode 100644 |
index 1645b8fed5b7eed4c8ea3ed6a3b92ba5de30dc79..0000000000000000000000000000000000000000 |
--- a/sky/framework/inspector/css-agent.sky |
+++ /dev/null |
@@ -1,54 +0,0 @@ |
-<script> |
-class CSS { |
- constructor(domAgent) { |
- this.domAgent_ = domAgent; |
- Object.preventExtensions(this); |
- } |
- |
- enable() { |
- } |
- |
- getInlineStylesForNode(params) { |
- return { |
- "inlineStyle": { |
- "cssProperties": [], |
- "shorthandEntries": [], |
- "styleSheetId": "0", |
- "range": { |
- "startLine": 0, |
- "startColumn": 0, |
- "endLine": 0, |
- "endColumn": 0 |
- }, |
- "cssText": "", |
- } |
- }; |
- } |
- |
- getComputedStyleForNode(params) { |
- var node = this.domAgent_.getNodeForId(params.nodeId); |
- if (!node){ |
- console.log("Error, missing node" + params.nodeId); |
- return { "computedStyle": [] }; |
- } |
- var style = window.getComputedStyle(node, null); |
- if (!style){ |
- console.log("Error, no computed style for " + params.nodeId + " " + node); |
- return { "computedStyle": [] }; |
- } |
- var computedStyles = []; |
- for (var i = 0; i < style.length; i++) { |
- var name = style.item(i); |
- computedStyles.push({ |
- "name": name, |
- "value": style.getPropertyValue(name), |
- }); |
- } |
- return { |
- "computedStyle": computedStyles, |
- }; |
- } |
-} |
- |
-module.exports = CSS; |
-</script> |