aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/gecko')
-rw-r--r--components/style/gecko/media_queries.rs2
-rw-r--r--components/style/gecko/wrapper.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/components/style/gecko/media_queries.rs b/components/style/gecko/media_queries.rs
index f666c930e6e..abd9f8af5e1 100644
--- a/components/style/gecko/media_queries.rs
+++ b/components/style/gecko/media_queries.rs
@@ -74,7 +74,7 @@ impl fmt::Debug for Device {
let mut doc_uri = nsCString::new();
unsafe {
bindings::Gecko_nsIURI_Debug(
- (*self.document()).mDocumentURI.raw::<structs::nsIURI>(),
+ (*self.document()).mDocumentURI.raw(),
&mut doc_uri,
)
};
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)
}