style: Make GeckoElement::has_class more specialized.

Bug: 1431421
Reviewed-by: xidorn
MozReview-Commit-ID: 7LiSEamTCkX
This commit is contained in:
Emilio Cobos Álvarez 2018-01-18 16:19:26 +01:00
parent b900664c1a
commit 0466e0b2bc
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 26 additions and 31 deletions

View file

@ -185,10 +185,12 @@ impl ElementSnapshot for GeckoElementSnapshot {
return false;
}
snapshot_helpers::has_class(self.as_ptr(),
name,
case_sensitivity,
bindings::Gecko_SnapshotClassOrClassList)
snapshot_helpers::has_class(
self.as_ptr(),
name,
case_sensitivity,
bindings::Gecko_SnapshotHasClass,
)
}
#[inline]
@ -200,9 +202,11 @@ impl ElementSnapshot for GeckoElementSnapshot {
return;
}
snapshot_helpers::each_class(self.as_ptr(),
callback,
bindings::Gecko_SnapshotClassOrClassList)
snapshot_helpers::each_class(
self.as_ptr(),
callback,
bindings::Gecko_SnapshotClassOrClassList,
)
}
#[inline]