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

Unified Diff: tracing/tracing/value/ui/scalar_context_controller.html

Issue 2347813002: [tracing] Heap dump UI overhaul (Closed)
Patch Set: Improve focus retention and add tests Created 4 years, 3 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 | « tracing/tracing/ui/analysis/memory_dump_heap_details_util.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/ui/scalar_context_controller.html
diff --git a/tracing/tracing/value/ui/scalar_context_controller.html b/tracing/tracing/value/ui/scalar_context_controller.html
index d56102058526efcb6fb4455b12dcbbcab774ca9b..f99a4558be2cc77f03fbb7121b8091592856c187 100644
--- a/tracing/tracing/value/ui/scalar_context_controller.html
+++ b/tracing/tracing/value/ui/scalar_context_controller.html
@@ -141,8 +141,10 @@ tr.exportTo('tr.v.ui', function() {
_markGroupDirtyAndScheduleUpdate: function(group) {
var alreadyDirty = this.dirtyGroups_.size > 0;
this.dirtyGroups_.add(group);
- if (!alreadyDirty)
- tr.b.requestAnimationFrame(this.updateContext.bind(this));
+ if (!alreadyDirty) {
+ tr.b.requestAnimationFrameInThisFrameIfPossible(
+ this.updateContext, this);
+ }
},
updateContext: function() {
« no previous file with comments | « tracing/tracing/ui/analysis/memory_dump_heap_details_util.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698