mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
stylo: Remove a bunch of out of now-unneeded out-of-line calls.
r? @bholley
This commit is contained in:
parent
a83ef43be0
commit
eb0c12acaf
4 changed files with 101 additions and 55 deletions
|
@ -2,6 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
mod ns_com_ptr;
|
||||
mod ns_css_shadow_array;
|
||||
mod ns_style_auto_array;
|
||||
pub mod ns_style_coord;
|
||||
|
|
18
components/style/gecko_bindings/sugar/ns_com_ptr.rs
Normal file
18
components/style/gecko_bindings/sugar/ns_com_ptr.rs
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
use gecko_bindings::structs::nsCOMPtr;
|
||||
|
||||
impl<T> nsCOMPtr<T> {
|
||||
#[cfg(debug_assertions)]
|
||||
#[inline]
|
||||
pub fn raw(&self) -> *mut T {
|
||||
self.mRawPtr
|
||||
}
|
||||
|
||||
#[cfg(not(debug_assertions))]
|
||||
#[inline]
|
||||
pub fn raw(&self) -> *mut T {
|
||||
self._base.mRawPtr as *mut _
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue