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

Unified Diff: Source/devtools/front_end/TimelineOverviewPane.js

Issue 20066005: DevTools: [Timeline] Reset Memory Overview pane when clear button is clicked (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/TimelineOverviewPane.js
diff --git a/Source/devtools/front_end/TimelineOverviewPane.js b/Source/devtools/front_end/TimelineOverviewPane.js
index 40d9a6b04dc76e611789909866539231038edf7d..a857f8d93b56403b2ec8f00e283e9ea064a476a4 100644
--- a/Source/devtools/front_end/TimelineOverviewPane.js
+++ b/Source/devtools/front_end/TimelineOverviewPane.js
@@ -463,12 +463,15 @@ WebInspector.TimelineMemoryOverview = function(model)
WebInspector.TimelineMemoryOverview.prototype = {
update: function()
{
+ this._resetCanvas();
+
+ var ctx = this._context;
+ this._clear(ctx);
+
var records = this._model.records;
if (!records.length)
return;
- this._resetCanvas();
-
const lowerOffset = 3;
var maxUsedHeapSize = 0;
var minUsedHeapSize = 100000000000;
@@ -494,8 +497,6 @@ WebInspector.TimelineMemoryOverview.prototype = {
histogram[x] = Math.max(histogram[x] || 0, y);
});
eustas 2013/07/24 06:08:20 Remove second empty line, please.
- var ctx = this._context;
- this._clear(ctx);
height++; // +1 so that the border always fit into the canvas area.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698