electron/shell/browser/ui
Charles Kerr 6293bbced0
perf: avoid redundant calls to GetView() (#43216)
* perf: avoid double-calls to GetView()

There are a lot of places where we call the virtual method GetView()
twice in succession: the first to check if the view exists, and the
second to use. This PR holds the view in a temp variable instead, e.g.:

if (auto* view = foo->GetView())
  view->DoSomething();

* perf: avoid discarded GetView() call
2024-08-06 11:25:59 -05:00
..
cocoa chore: bump chromium to 129.0.6630.0 (main) (#43087) 2024-08-02 09:02:11 -05:00
gtk chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
views chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
webui chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
win chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
x
accelerator_util.cc chore: remove unused #includes (#42971) 2024-07-22 11:31:32 +02:00
accelerator_util.h
accelerator_util_unittests.cc chore: remove unused #includes (#42971) 2024-07-22 11:31:32 +02:00
autofill_popup.cc perf: avoid redundant calls to GetView() (#43216) 2024-08-06 11:25:59 -05:00
autofill_popup.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
certificate_trust.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
certificate_trust_mac.mm chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
certificate_trust_win.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
devtools_manager_delegate.cc chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
devtools_manager_delegate.h chore: remove unused #includes (#42971) 2024-07-22 11:31:32 +02:00
devtools_ui.cc chore: remove unused #includes (#42971) 2024-07-22 11:31:32 +02:00
devtools_ui.h chore: remove unused #includes (#42971) 2024-07-22 11:31:32 +02:00
drag_util.cc chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
drag_util.h chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
drag_util_mac.mm chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
drag_util_views.cc
electron_desktop_window_tree_host_linux.cc chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
electron_desktop_window_tree_host_linux.h chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
electron_gdk_pixbuf.sigs
electron_gtk.fragment
electron_gtk.sigs
electron_menu_model.cc chore: remove unused #includes (#42971) 2024-07-22 11:31:32 +02:00
electron_menu_model.h
file_dialog.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
file_dialog_linux.cc refactor: prefer std::ranges over base::ranges (#43172) 2024-08-02 21:21:59 -05:00
file_dialog_mac.mm chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
file_dialog_win.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
gtk_util.cc
gtk_util.h
inspectable_web_contents.cc refactor: prefer std::ranges over base::ranges (#43172) 2024-08-02 21:21:59 -05:00
inspectable_web_contents.h chore: bump chromium to 128.0.6611.0 (main) (#42779) 2024-07-23 08:59:44 -07:00
inspectable_web_contents_delegate.h chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
inspectable_web_contents_view.cc fix: remove InspectableWebContentsViewMac (#43033) 2024-07-27 11:44:22 -05:00
inspectable_web_contents_view.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
inspectable_web_contents_view_delegate.cc
inspectable_web_contents_view_delegate.h
inspectable_web_contents_view_mac.h fix: remove InspectableWebContentsViewMac (#43033) 2024-07-27 11:44:22 -05:00
inspectable_web_contents_view_mac.mm chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
message_box.h
message_box_gtk.cc chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
message_box_mac.mm chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
message_box_win.cc
run_all_unittests.cc chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
status_icon_gtk.cc
status_icon_gtk.h
tray_icon.cc
tray_icon.h
tray_icon_cocoa.h
tray_icon_cocoa.mm chore: remove unused #includes (#42971) 2024-07-22 11:31:32 +02:00
tray_icon_linux.cc
tray_icon_linux.h
tray_icon_observer.h
tray_icon_win.cc