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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 */ 65 */
66 function callback(style) 66 function callback(style)
67 { 67 {
68 if (!style || this.node() !== node) 68 if (!style || this.node() !== node)
69 return; 69 return;
70 this._updateMetrics(style); 70 this._updateMetrics(style);
71 } 71 }
72 cssModel.getComputedStyleAsync(node.id, callback.bind(this)); 72 cssModel.getComputedStyleAsync(node.id, callback.bind(this));
73 73
74 /** 74 /**
75 * @param {?WebInspector.CSSStyleDeclaration} style 75 * @param {?WebInspector.CSSStyleModel.InlineStyleResult} inlineStyleRes ult
76 * @this {WebInspector.MetricsSidebarPane} 76 * @this {WebInspector.MetricsSidebarPane}
77 */ 77 */
78 function inlineStyleCallback(style) 78 function inlineStyleCallback(inlineStyleResult)
79 { 79 {
80 if (style && this.node() === node) 80 if (inlineStyleResult && this.node() === node)
81 this.inlineStyle = style; 81 this.inlineStyle = inlineStyleResult.inlineStyle;
82 finishedCallback(); 82 finishedCallback();
83 } 83 }
84 cssModel.getInlineStylesAsync(node.id, inlineStyleCallback.bind(this)); 84 cssModel.getInlineStylesAsync(node.id, inlineStyleCallback.bind(this));
85 }, 85 },
86 86
87 /** 87 /**
88 * @override 88 * @override
89 */ 89 */
90 onDOMModelChanged: function() 90 onDOMModelChanged: function()
91 { 91 {
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 }, 456 },
457 457
458 editingCommitted: function(element, userInput, previousContent, context) 458 editingCommitted: function(element, userInput, previousContent, context)
459 { 459 {
460 this.editingEnded(element, context); 460 this.editingEnded(element, context);
461 this._applyUserInput(element, userInput, previousContent, context, true) ; 461 this._applyUserInput(element, userInput, previousContent, context, true) ;
462 }, 462 },
463 463
464 __proto__: WebInspector.ElementsSidebarPane.prototype 464 __proto__: WebInspector.ElementsSidebarPane.prototype
465 } 465 }
OLDNEW
« 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