Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: Source/devtools/front_end/elements/MetricsSidebarPane.js

Issue 1210893002: DevTools: [CSS] introduce strong types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/elements/MetricsSidebarPane.js
diff --git a/Source/devtools/front_end/elements/MetricsSidebarPane.js b/Source/devtools/front_end/elements/MetricsSidebarPane.js
index 62c3247c50af905680b446e161c73dc41d3d8835..f934756dd8659254a17d8c16586f08afa71f2cc7 100644
--- a/Source/devtools/front_end/elements/MetricsSidebarPane.js
+++ b/Source/devtools/front_end/elements/MetricsSidebarPane.js
@@ -72,13 +72,13 @@ WebInspector.MetricsSidebarPane.prototype = {
cssModel.getComputedStyleAsync(node.id, callback.bind(this));
/**
- * @param {?WebInspector.CSSStyleDeclaration} style
+ * @param {?WebInspector.CSSStyleModel.InlineStyleResult} inlineStyleResult
* @this {WebInspector.MetricsSidebarPane}
*/
- function inlineStyleCallback(style)
+ function inlineStyleCallback(inlineStyleResult)
{
- if (style && this.node() === node)
- this.inlineStyle = style;
+ if (inlineStyleResult && this.node() === node)
+ this.inlineStyle = inlineStyleResult.inlineStyle;
finishedCallback();
}
cssModel.getInlineStylesAsync(node.id, inlineStyleCallback.bind(this));
« no previous file with comments | « Source/devtools/front_end/audits/AuditRules.js ('k') | Source/devtools/front_end/elements/PlatformFontsWidget.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698