mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
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:
parent
7a2b444a60
commit
b92440ef7c
4 changed files with 7 additions and 21 deletions
|
@ -6,20 +6,10 @@
|
|||
|
||||
use crate::gecko_bindings::structs::nsCOMPtr;
|
||||
|
||||
#[cfg(feature = "gecko_debug")]
|
||||
impl<T> nsCOMPtr<T> {
|
||||
/// Get this pointer as a raw pointer.
|
||||
#[inline]
|
||||
pub fn raw<U>(&self) -> *mut T {
|
||||
pub fn raw(&self) -> *mut T {
|
||||
self.mRawPtr
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "gecko_debug"))]
|
||||
impl nsCOMPtr {
|
||||
/// Get this pointer as a raw pointer.
|
||||
#[inline]
|
||||
pub fn raw<T>(&self) -> *mut T {
|
||||
self._base.mRawPtr as *mut _
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue