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

Unified Diff: Source/devtools/front_end/timeline/TimelinePaintProfilerView.js

Issue 1162223002: DevTools: properly update paint profiler upon new event being set (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: skip the test under virtual/deferred 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
« no previous file with comments | « LayoutTests/inspector/tracing/paint-profiler-update-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/TimelinePaintProfilerView.js
diff --git a/Source/devtools/front_end/timeline/TimelinePaintProfilerView.js b/Source/devtools/front_end/timeline/TimelinePaintProfilerView.js
index 9f2b0a9ac427efddb04d9007707b90af1171eabe..d206a89cdcb8e4c93e40f82f90a6c803c23113e8 100644
--- a/Source/devtools/front_end/timeline/TimelinePaintProfilerView.js
+++ b/Source/devtools/front_end/timeline/TimelinePaintProfilerView.js
@@ -49,7 +49,10 @@ WebInspector.TimelinePaintProfilerView.prototype = {
this._target = target;
this._event = event;
- this._updateWhenVisible = true;
+ if (this.isShowing())
+ this._update();
+ else
+ this._updateWhenVisible = true;
if (this._event.name === WebInspector.TimelineModel.RecordType.Paint)
return !!event.picture;
« no previous file with comments | « LayoutTests/inspector/tracing/paint-profiler-update-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698