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

Unified Diff: third_party/WebKit/Source/devtools/front_end/perf_ui/FilmStripView.js

Issue 2702523003: [DevTools] Continue GlassPane refactoring. (Closed)
Patch Set: element Created 3 years, 10 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/perf_ui/FilmStripView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/perf_ui/FilmStripView.js b/third_party/WebKit/Source/devtools/front_end/perf_ui/FilmStripView.js
index 34d53ca29bca3815446ebee1f731afbfd9e3194a..6e822193ff33c828f9672e31592a1112856c2ca6 100644
--- a/third_party/WebKit/Source/devtools/front_end/perf_ui/FilmStripView.js
+++ b/third_party/WebKit/Source/devtools/front_end/perf_ui/FilmStripView.js
@@ -240,11 +240,10 @@ PerfUI.FilmStripView.Dialog = class extends UI.VBox {
_resize() {
if (!this._dialog) {
this._dialog = new UI.Dialog();
- this.show(this._dialog.element);
- this._dialog.setWrapsContent(true);
- this._dialog.show();
+ this.show(this._dialog.contentElement);
+ this._dialog.showDialog();
}
- this._dialog.contentResized();
+ this._dialog.setSizeBehavior(UI.GlassPane.SizeBehavior.MeasureContent);
}
/**

Powered by Google App Engine
This is Rietveld 408576698