aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/data.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2023-05-11 00:36:24 +0000
committerMartin Robinson <mrobinson@igalia.com>2023-11-24 08:57:14 +0100
commit779aa9d30ec43c043910883dce5988c0b01534bd (patch)
tree89b742d8c798da48e62ed721405a8a9e66c6b890 /components/style/gecko/data.rs
parentd9d865e8c9fad5eaaa15be7d3bfbf53df47135ca (diff)
downloadservo-779aa9d30ec43c043910883dce5988c0b01534bd.tar.gz
servo-779aa9d30ec43c043910883dce5988c0b01534bd.zip
style: Remove HasArcFFI for some types
See blocked bug. For non-Locked types we can just use the same underlying type at the FFI boundary. Port StylesheetContents and CssUrlData to this set-up. CssUrlData is already generated by cbindgen anyways. Differential Revision: https://phabricator.services.mozilla.com/D177559
Diffstat (limited to 'components/style/gecko/data.rs')
-rw-r--r--components/style/gecko/data.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/components/style/gecko/data.rs b/components/style/gecko/data.rs
index 65c7dc71012..50c827bf62f 100644
--- a/components/style/gecko/data.rs
+++ b/components/style/gecko/data.rs
@@ -125,11 +125,7 @@ impl StylesheetInDocument for GeckoStyleSheet {
#[inline]
fn contents(&self) -> &StylesheetContents {
debug_assert!(!self.inner().mContents.mRawPtr.is_null());
- unsafe {
- let contents =
- (&**StylesheetContents::as_arc(&&*self.inner().mContents.mRawPtr)) as *const _;
- &*contents
- }
+ unsafe { &*self.inner().mContents.mRawPtr }
}
}