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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotView.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 context.font = "10px " + window.getComputedStyle(this.element, null) .getPropertyValue("font-family"); 1946 context.font = "10px " + window.getComputedStyle(this.element, null) .getPropertyValue("font-family");
1947 context.fillStyle = "rgba(255, 255, 255, 0.75)"; 1947 context.fillStyle = "rgba(255, 255, 255, 0.75)";
1948 context.fillRect(labelX, labelY - gridLabelHeight, labelWidth, gridL abelHeight); 1948 context.fillRect(labelX, labelY - gridLabelHeight, labelWidth, gridL abelHeight);
1949 context.fillStyle = "rgb(64, 64, 64)"; 1949 context.fillStyle = "rgb(64, 64, 64)";
1950 context.fillText(label, labelX + labelPadding, labelY); 1950 context.fillText(label, labelX + labelPadding, labelY);
1951 context.fill(); 1951 context.fill();
1952 context.closePath(); 1952 context.closePath();
1953 } 1953 }
1954 }, 1954 },
1955 1955
1956 /**
1957 * @override
1958 */
1956 onResize: function() 1959 onResize: function()
1957 { 1960 {
1958 this._updateOverviewCanvas = true; 1961 this._updateOverviewCanvas = true;
1959 this._scheduleUpdate(); 1962 this._scheduleUpdate();
1960 }, 1963 },
1961 1964
1962 _onWindowChanged: function() 1965 _onWindowChanged: function()
1963 { 1966 {
1964 if (!this._updateGridTimerId) 1967 if (!this._updateGridTimerId)
1965 this._updateGridTimerId = setTimeout(this._updateGrid.bind(this), 10 ); 1968 this._updateGridTimerId = setTimeout(this._updateGrid.bind(this), 10 );
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
2248 name.textContent = WebInspector.beautifyFunctionName(frame.functionN ame); 2251 name.textContent = WebInspector.beautifyFunctionName(frame.functionN ame);
2249 if (frame.scriptId) { 2252 if (frame.scriptId) {
2250 var urlElement = this._linkifier.linkifyScriptLocation(this._tar get, String(frame.scriptId), frame.scriptName, frame.line - 1, frame.column - 1) ; 2253 var urlElement = this._linkifier.linkifyScriptLocation(this._tar get, String(frame.scriptId), frame.scriptName, frame.line - 1, frame.column - 1) ;
2251 frameDiv.appendChild(urlElement); 2254 frameDiv.appendChild(urlElement);
2252 } 2255 }
2253 } 2256 }
2254 }, 2257 },
2255 2258
2256 __proto__: WebInspector.Widget.prototype 2259 __proto__: WebInspector.Widget.prototype
2257 }; 2260 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698