mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
style: Sprinkle some #[inline] on methods that have inline fast-paths.
MozReview-Commit-ID: 5kOmctLTAX0
This commit is contained in:
parent
2baa794de6
commit
710184b670
1 changed files with 2 additions and 0 deletions
|
@ -1356,6 +1356,7 @@ impl<'le> TElement for GeckoElement<'le> {
|
||||||
!self.is_in_native_anonymous_subtree()
|
!self.is_in_native_anonymous_subtree()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
fn implemented_pseudo_element(&self) -> Option<PseudoElement> {
|
fn implemented_pseudo_element(&self) -> Option<PseudoElement> {
|
||||||
if !self.is_in_native_anonymous_subtree() {
|
if !self.is_in_native_anonymous_subtree() {
|
||||||
return None;
|
return None;
|
||||||
|
@ -1369,6 +1370,7 @@ impl<'le> TElement for GeckoElement<'le> {
|
||||||
PseudoElement::from_pseudo_type(pseudo_type)
|
PseudoElement::from_pseudo_type(pseudo_type)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
fn store_children_to_process(&self, _: isize) {
|
fn store_children_to_process(&self, _: isize) {
|
||||||
// This is only used for bottom-up traversal, and is thus a no-op for Gecko.
|
// This is only used for bottom-up traversal, and is thus a no-op for Gecko.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue