gecko-dev/view
Emilio Cobos Álvarez 61b953b167 Bug 1813148 - Don't return already_AddRefed in nsPresContext::GetRootWidget. r=dholbert
Let the caller addref it if needed.

I wrote this because I wanted to make some code dealing with it
thread-safe, but I ended up writing a less sketchy solution. However I
still think this is worth it.

It seems this only returns an already_AddRefed because before it used to
be an XPCOM-ish thing where the widget was returned as an out-param.

For now it doesn't change behavior but there are some callers that would
benefit from having less addref/release calls if they only need to read
simple stuff from the widget.

Differential Revision: https://phabricator.services.mozilla.com/D168141
2023-01-27 19:50:59 +00:00
..
crashtests Bug 1724718 - skip some XUL-y tests on android, r=emilio,agi 2021-08-19 12:13:01 +00:00
moz.build Bug 1733701: Remove REQUIRES_UNIFIED_BUILD from view/moz.build, since it builds just fine in non-unified mode. r=tnikkel 2021-10-01 22:12:13 +00:00
nsView.cpp Bug 1811487 - Clean-up popup hide / rollup APIs. r=cmartin,stransky 2023-01-24 15:43:49 +00:00
nsView.h Bug 1798697 - Use outside rather than closest pixels for popup sizes, and don't clamp translucent popups. r=tnikkel 2023-01-24 11:24:48 +00:00
nsViewManager.cpp Bug 1813148 - Don't return already_AddRefed in nsPresContext::GetRootWidget. r=dholbert 2023-01-27 19:50:59 +00:00
nsViewManager.h Bug 1813148 - Don't return already_AddRefed in nsPresContext::GetRootWidget. r=dholbert 2023-01-27 19:50:59 +00:00