mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Inline a bunch of trivial stuff we're paying calls for in Geckolib.
This commit is contained in:
parent
10779f0251
commit
fcd6e79659
5 changed files with 23 additions and 0 deletions
|
@ -57,6 +57,7 @@ impl TraversalDriver {
|
|||
}
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
#[inline]
|
||||
fn is_servo_nonincremental_layout() -> bool {
|
||||
use servo_config::opts;
|
||||
|
||||
|
@ -64,6 +65,7 @@ fn is_servo_nonincremental_layout() -> bool {
|
|||
}
|
||||
|
||||
#[cfg(not(feature = "servo"))]
|
||||
#[inline]
|
||||
fn is_servo_nonincremental_layout() -> bool {
|
||||
false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue