style: Sprinkle some inline in trivial methods.

These methods are instantiated by the Gecko library, and used during
querySelector, which means that they end up being super-hot in micro-benchmarks.

MozReview-Commit-ID: K1XJb0QyX5a
This commit is contained in:
Emilio Cobos Álvarez 2017-11-15 03:30:43 +01:00
parent 2efbf2230a
commit 28c04278e1
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 28 additions and 0 deletions

View file

@ -800,6 +800,7 @@ where
}
}
#[inline(always)]
fn select_name<'a, T>(is_html: bool, local_name: &'a T, local_name_lower: &'a T) -> &'a T {
if is_html {
local_name_lower