stylo: Remove a bunch of out of now-unneeded out-of-line calls.

r? @bholley
This commit is contained in:
Emilio Cobos Álvarez 2016-09-26 21:49:53 +02:00
parent a83ef43be0
commit eb0c12acaf
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 101 additions and 55 deletions

View file

@ -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;

View 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 _
}
}