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

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

Issue 1180843010: DevTools: Optimize events overview drawing performance (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « Source/devtools/front_end/timeline/TimelineEventOverview.js ('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/ui_lazy/TimelineOverviewPane.js
diff --git a/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js b/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
index 9ec0dae79af96d8f648772ffbdc528bd4d376d17..1a12bcefcc58af89db89ecbb2bf899a57eb7e63a 100644
--- a/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
+++ b/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
@@ -55,6 +55,7 @@ WebInspector.TimelineOverviewPane = function(prefix)
this._popoverHelper.setTimeout(0);
this._cursorEnabled = false;
+ this._lastWidth = 0;
}
WebInspector.TimelineOverviewPane.Events = {
@@ -144,6 +145,10 @@ WebInspector.TimelineOverviewPane.prototype = {
*/
onResize: function()
{
+ var width = this.element.offsetWidth;
+ if (width === this._lastWidth)
+ return;
+ this._lastWidth = width;
this.update();
},
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineEventOverview.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698