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

Unified Diff: Source/devtools/front_end/components/TimelineGrid.js

Issue 340513003: DevTools: Add JSDoc for static methods, fix JSDoc types and induced errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased patch Created 6 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/components/TimelineGrid.js
diff --git a/Source/devtools/front_end/components/TimelineGrid.js b/Source/devtools/front_end/components/TimelineGrid.js
index cca4b7c74c58094cec74f7a86341c30ff92f29ca..76471534b1bd722e235308362abedc472fdf825f 100644
--- a/Source/devtools/front_end/components/TimelineGrid.js
+++ b/Source/devtools/front_end/components/TimelineGrid.js
@@ -191,8 +191,8 @@ WebInspector.TimelineGrid.prototype = {
var dividersElementClientWidth = this._dividersElement.clientWidth;
// Reuse divider elements and labels.
- var divider = this._dividersElement.firstChild;
- var dividerLabelBar = this._dividersLabelBarElement.firstChild;
+ var divider = /** @type {?Element} */ (this._dividersElement.firstChild);
+ var dividerLabelBar = /** @type {?Element} */ (this._dividersLabelBarElement.firstChild);
const minWidthForTitle = 60;
var lastPosition = 0;
« no previous file with comments | « Source/devtools/front_end/components/SearchableView.js ('k') | Source/devtools/front_end/console/ConsoleViewMessage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698