mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Box larger specified values to avoid memmove impact
This commit is contained in:
parent
abc40f61c0
commit
78afe2b8d1
26 changed files with 174 additions and 67 deletions
|
@ -75,7 +75,12 @@ pub trait HasViewportPercentage {
|
|||
fn has_viewport_percentage(&self) -> bool;
|
||||
}
|
||||
|
||||
|
||||
impl<T: HasViewportPercentage> HasViewportPercentage for Box<T> {
|
||||
#[inline]
|
||||
fn has_viewport_percentage(&self) -> bool {
|
||||
(**self).has_viewport_percentage()
|
||||
}
|
||||
}
|
||||
|
||||
use self::computed::ComputedValueAsSpecified;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue