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

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

Issue 1863883002: DevTools: Fix first paint screenshot. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
index 8c3fb6cb950083c097dddb00f0bdc6f2ce0b10ff..3b9cfb3a73017f581b19a57b5019ad9f4c60132c 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
@@ -141,17 +141,7 @@ WebInspector.TimelineOverviewPane.prototype = {
{
var document = this.element.ownerDocument;
var x = this._cursorPosition;
- var promises = this._overviewControls.map(mapToPopover);
-
- /**
- * @param {!WebInspector.TimelineOverview} control
- * @return {!Promise<?Element>}
- */
- function mapToPopover(control)
- {
- return control.popoverElementPromise(x)
- }
-
+ var promises = this._overviewControls.map(control => control.popoverElementPromise(x));
return Promise.all(promises).then(buildFragment);
/**

Powered by Google App Engine
This is Rietveld 408576698