Bug 1719963 - Better wallpaper for now.

Differential Revision: https://phabricator.services.mozilla.com/D120699
This commit is contained in:
Emilio Cobos Álvarez 2021-07-23 07:43:59 +00:00
parent 66ea60801d
commit 554f7bcc76

View File

@ -64,7 +64,10 @@ impl GeckoStyleSheet {
/// bug 1719963 and can hopefully get a useful report from fuzzers.
#[inline]
pub fn hack_is_null(&self) -> bool {
self.0.is_null()
debug_assert!(!self.0.is_null());
debug_assert!(!self.raw().mInner.is_null());
debug_assert!(!self.inner().mContents.mRawPtr.is_null());
self.0.is_null() || self.raw().mInner.is_null() || self.inner().mContents.mRawPtr.is_null()
}
/// Get the raw `StyleSheet` that we're wrapping.