style: Disable NSCAP_FEATURE_USE_BASE

This is a relatively small code size regression (130k on windows and
macOS, 180k on Linux), for a few high confidence improvements in
speedometer 3. See link in the bug.

If this sticks, we can actually clean up a bunch of code, and eventually
unify RefPtr and nsCOMPtr. But I want this to be on the tree for a while
before doing more aggressive refactorings / actually removing the code.

Differential Revision: https://phabricator.services.mozilla.com/D178267
This commit is contained in:
Emilio Cobos Álvarez 2023-05-17 16:59:24 +00:00 committed by Martin Robinson
parent 7a2b444a60
commit b92440ef7c
4 changed files with 7 additions and 21 deletions

View file

@ -74,7 +74,7 @@ impl fmt::Debug for Device {
let mut doc_uri = nsCString::new();
unsafe {
bindings::Gecko_nsIURI_Debug(
(*self.document()).mDocumentURI.raw::<structs::nsIURI>(),
(*self.document()).mDocumentURI.raw(),
&mut doc_uri,
)
};