mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Move specified and computed percentages to submodules
This commit is contained in:
parent
fb8400d745
commit
796a2b9632
7 changed files with 212 additions and 174 deletions
|
@ -785,7 +785,7 @@ impl From<NoCalcLength> for LengthOrPercentage {
|
|||
impl From<Percentage> for LengthOrPercentage {
|
||||
#[inline]
|
||||
fn from(pc: Percentage) -> Self {
|
||||
if pc.calc_clamping_mode.is_some() {
|
||||
if pc.is_calc() {
|
||||
LengthOrPercentage::Calc(Box::new(CalcLengthOrPercentage {
|
||||
percentage: Some(computed::Percentage(pc.get())),
|
||||
.. Default::default()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue