mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Cleanup a bit the calc code.
I happened to be looking at it. MozReview-Commit-ID: Ketot34XtOX
This commit is contained in:
parent
4f09987611
commit
49535d6987
2 changed files with 27 additions and 18 deletions
|
@ -64,9 +64,10 @@ pub enum CalcUnit {
|
|||
|
||||
/// A struct to hold a simplified `<length>` or `<percentage>` expression.
|
||||
///
|
||||
/// In some cases, e.g. DOMMatrix, we support calc(), but reject all the relative lengths, and
|
||||
/// to_computed_pixel_length_without_context() handles this case. Therefore, if you want to add a
|
||||
/// new field, please make sure this function work properly.
|
||||
/// In some cases, e.g. DOMMatrix, we support calc(), but reject all the
|
||||
/// relative lengths, and to_computed_pixel_length_without_context() handles
|
||||
/// this case. Therefore, if you want to add a new field, please make sure this
|
||||
/// function work properly.
|
||||
#[derive(Clone, Copy, Debug, Default, MallocSizeOf, PartialEq)]
|
||||
#[allow(missing_docs)]
|
||||
pub struct CalcLengthOrPercentage {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue