Index: Source/devtools/front_end/CSSStyleModel.js |
diff --git a/Source/devtools/front_end/CSSStyleModel.js b/Source/devtools/front_end/CSSStyleModel.js |
index 80e52d2a05faf848689389f819b16d95fcc243b3..e6164ef2a7a2508092db065f4de15db55c9efb55 100644 |
--- a/Source/devtools/front_end/CSSStyleModel.js |
+++ b/Source/devtools/front_end/CSSStyleModel.js |
@@ -159,6 +159,22 @@ WebInspector.CSSStyleModel.prototype = { |
}, |
/** |
+ * @param {number} nodeId |
+ * @param {function(?String, ?Array.<CSSAgent.PlatformFontUsage>)} callback |
+ */ |
+ getPlatformFontsForNode: function(nodeId, callback) |
+ { |
+ function platformFontsCallback(error, cssFamilyName, fonts) |
+ { |
+ if (error) |
+ callback(null, null); |
+ else |
+ callback(cssFamilyName, fonts); |
+ } |
+ CSSAgent.getPlatformFontsForNode(nodeId, platformFontsCallback); |
+ }, |
+ |
+ /** |
* @param {DOMAgent.NodeId} nodeId |
* @param {function(?WebInspector.CSSStyleDeclaration, ?WebInspector.CSSStyleDeclaration)} userCallback |
*/ |