diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2023-05-22 10:03:20 +0200 |
---|---|---|
committer | Oriol Brufau <obrufau@igalia.com> | 2023-05-24 18:32:37 +0200 |
commit | 1918c1c2034ca0ac75744bfa08c53ddfc8fb1caf (patch) | |
tree | deda3d7bfb19ac3eb8e6027266287fe86043694f /components/style/dom.rs | |
parent | 695ff236c81e7fc7c4f73db35ce12b3dcce40fb6 (diff) | |
download | servo-1918c1c2034ca0ac75744bfa08c53ddfc8fb1caf.tar.gz servo-1918c1c2034ca0ac75744bfa08c53ddfc8fb1caf.zip |
style: Inline GeckoNode::prev_sibling
It's very hot when matching some kind of selectors like the ones in bug
1717267, and the two function calls show up in the profiles.
Differential Revision: https://phabricator.services.mozilla.com/D119505
Diffstat (limited to 'components/style/dom.rs')
-rw-r--r-- | components/style/dom.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/dom.rs b/components/style/dom.rs index c70a8fd26be..c85ff1edaff 100644 --- a/components/style/dom.rs +++ b/components/style/dom.rs @@ -151,7 +151,7 @@ pub trait TNode: Sized + Copy + Clone + Debug + NodeInfo + PartialEq { /// Get this node's first child. fn first_child(&self) -> Option<Self>; - /// Get this node's first child. + /// Get this node's last child. fn last_child(&self) -> Option<Self>; /// Get this node's previous sibling. |