aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/wrapper.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2023-05-17 16:59:24 +0000
committerMartin Robinson <mrobinson@igalia.com>2023-11-24 08:57:14 +0100
commitb92440ef7c38a453ef76dba53ecd9ef90c4676af (patch)
tree26ae8182faa8a987da226501d9e56ca190b7146f /components/style/gecko/wrapper.rs
parent7a2b444a6043bb82f83886b66be85d2255bba44e (diff)
downloadservo-b92440ef7c38a453ef76dba53ecd9ef90c4676af.tar.gz
servo-b92440ef7c38a453ef76dba53ecd9ef90c4676af.zip
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
Diffstat (limited to 'components/style/gecko/wrapper.rs')
-rw-r--r--components/style/gecko/wrapper.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs
index 3a1d61b019b..ac4f113c93e 100644
--- a/components/style/gecko/wrapper.rs
+++ b/components/style/gecko/wrapper.rs
@@ -413,7 +413,7 @@ impl<'ln> TNode for GeckoNode<'ln> {
unsafe {
self.0
.mFirstChild
- .raw::<nsIContent>()
+ .raw()
.as_ref()
.map(GeckoNode::from_content)
}
@@ -428,7 +428,7 @@ impl<'ln> TNode for GeckoNode<'ln> {
fn prev_sibling(&self) -> Option<Self> {
unsafe {
let prev_or_last = GeckoNode::from_content(self.0.mPreviousOrLastSibling.as_ref()?);
- if prev_or_last.0.mNextSibling.raw::<nsIContent>().is_null() {
+ if prev_or_last.0.mNextSibling.raw().is_null() {
return None;
}
Some(prev_or_last)
@@ -440,7 +440,7 @@ impl<'ln> TNode for GeckoNode<'ln> {
unsafe {
self.0
.mNextSibling
- .raw::<nsIContent>()
+ .raw()
.as_ref()
.map(GeckoNode::from_content)
}