/dports/www/firefox-esr/firefox-91.8.0/servo/tests/unit/style/properties/ |
H A D | serialization.rs | 36 LengthPercentageOrAuto::Length(NoCalcLength::from_px(70f32))), in property_declaration_block_should_serialize_correctly() 40 LengthPercentage::Length(NoCalcLength::from_px(20f32))), in property_declaration_block_should_serialize_correctly() 44 LengthPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in property_declaration_block_should_serialize_correctly() 159 let px_30 = BorderSideWidth::Length(Length::from_px(30f32)); in different_longhands_should_serialize_to_long_form() 160 let px_10 = BorderSideWidth::Length(Length::from_px(10f32)); in different_longhands_should_serialize_to_long_form() 190 let px_30 = BorderSideWidth::Length(Length::from_px(30f32)); in same_longhands_should_serialize_correctly() 389 (BorderSideWidth::Length(Length::from_px(4f32)), in get_border_property_values() 716 horizontal: Length::from_px(1f32), in box_shadow_should_serialize_correctly() 717 vertical: Length::from_px(2f32), in box_shadow_should_serialize_correctly() 718 blur: Some(NonNegativeLength::from_px(3f32)), in box_shadow_should_serialize_correctly() [all …]
|
/dports/www/firefox/firefox-99.0/servo/tests/unit/style/properties/ |
H A D | serialization.rs | 36 LengthPercentageOrAuto::Length(NoCalcLength::from_px(70f32))), in property_declaration_block_should_serialize_correctly() 40 LengthPercentage::Length(NoCalcLength::from_px(20f32))), in property_declaration_block_should_serialize_correctly() 44 LengthPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in property_declaration_block_should_serialize_correctly() 159 let px_30 = BorderSideWidth::Length(Length::from_px(30f32)); in different_longhands_should_serialize_to_long_form() 160 let px_10 = BorderSideWidth::Length(Length::from_px(10f32)); in different_longhands_should_serialize_to_long_form() 190 let px_30 = BorderSideWidth::Length(Length::from_px(30f32)); in same_longhands_should_serialize_correctly() 389 (BorderSideWidth::Length(Length::from_px(4f32)), in get_border_property_values() 716 horizontal: Length::from_px(1f32), in box_shadow_should_serialize_correctly() 717 vertical: Length::from_px(2f32), in box_shadow_should_serialize_correctly() 718 blur: Some(NonNegativeLength::from_px(3f32)), in box_shadow_should_serialize_correctly() [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/servo/tests/unit/style/properties/ |
H A D | serialization.rs | 36 LengthPercentageOrAuto::Length(NoCalcLength::from_px(70f32))), in property_declaration_block_should_serialize_correctly() 40 LengthPercentage::Length(NoCalcLength::from_px(20f32))), in property_declaration_block_should_serialize_correctly() 44 LengthPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in property_declaration_block_should_serialize_correctly() 159 let px_30 = BorderSideWidth::Length(Length::from_px(30f32)); in different_longhands_should_serialize_to_long_form() 160 let px_10 = BorderSideWidth::Length(Length::from_px(10f32)); in different_longhands_should_serialize_to_long_form() 190 let px_30 = BorderSideWidth::Length(Length::from_px(30f32)); in same_longhands_should_serialize_correctly() 389 (BorderSideWidth::Length(Length::from_px(4f32)), in get_border_property_values() 716 horizontal: Length::from_px(1f32), in box_shadow_should_serialize_correctly() 717 vertical: Length::from_px(2f32), in box_shadow_should_serialize_correctly() 718 blur: Some(NonNegativeLength::from_px(3f32)), in box_shadow_should_serialize_correctly() [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/servo/tests/unit/style/properties/ |
H A D | serialization.rs | 36 LengthPercentageOrAuto::Length(NoCalcLength::from_px(70f32))), in property_declaration_block_should_serialize_correctly() 40 LengthPercentage::Length(NoCalcLength::from_px(20f32))), in property_declaration_block_should_serialize_correctly() 44 LengthPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in property_declaration_block_should_serialize_correctly() 159 let px_30 = BorderSideWidth::Length(Length::from_px(30f32)); in different_longhands_should_serialize_to_long_form() 160 let px_10 = BorderSideWidth::Length(Length::from_px(10f32)); in different_longhands_should_serialize_to_long_form() 190 let px_30 = BorderSideWidth::Length(Length::from_px(30f32)); in same_longhands_should_serialize_correctly() 389 (BorderSideWidth::Length(Length::from_px(4f32)), in get_border_property_values() 744 horizontal: Length::from_px(1f32), in box_shadow_should_serialize_correctly() 745 vertical: Length::from_px(2f32), in box_shadow_should_serialize_correctly() 746 blur: Some(NonNegativeLength::from_px(3f32)), in box_shadow_should_serialize_correctly() [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/servo/tests/unit/style/properties/ |
H A D | serialization.rs | 37 LengthOrPercentageOrAuto::Length(NoCalcLength::from_px(70f32))), in property_declaration_block_should_serialize_correctly() 41 LengthOrPercentage::Length(NoCalcLength::from_px(20f32))), in property_declaration_block_should_serialize_correctly() 45 LengthOrPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in property_declaration_block_should_serialize_correctly() 193 let px_30 = BorderSideWidth::Length(Length::from_px(30f32)); in different_longhands_should_serialize_to_long_form() 194 let px_10 = BorderSideWidth::Length(Length::from_px(10f32)); in different_longhands_should_serialize_to_long_form() 224 let px_30 = BorderSideWidth::Length(Length::from_px(30f32)); in same_longhands_should_serialize_correctly() 423 (BorderSideWidth::Length(Length::from_px(4f32)), in get_border_property_values() 986 horizontal: Length::from_px(1f32), in box_shadow_should_serialize_correctly() 987 vertical: Length::from_px(2f32), in box_shadow_should_serialize_correctly() 988 blur: Some(NonNegativeLength::from_px(3f32)), in box_shadow_should_serialize_correctly() [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/servo/tests/unit/style/ |
H A D | keyframes.rs | 70 LengthOrPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in test_missing_property_in_initial_keyframe() 79 LengthOrPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in test_missing_property_in_initial_keyframe() 85 LengthOrPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in test_missing_property_in_initial_keyframe() 137 LengthOrPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in test_missing_property_in_final_keyframe() 143 LengthOrPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in test_missing_property_in_final_keyframe() 153 LengthOrPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in test_missing_property_in_final_keyframe() 202 LengthOrPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in test_missing_keyframe_in_both_of_initial_and_final_keyframe() 208 LengthOrPercentageOrAuto::Length(NoCalcLength::from_px(20f32))), in test_missing_keyframe_in_both_of_initial_and_final_keyframe()
|
H A D | media_queries.rs | 208 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_default_expressions() 220 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_default_expressions() 235 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_expressions() 247 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_expressions() 259 … ExpressionKind::Width(Range::Eq(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_expressions() 272 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(52.)), in test_mq_expressions() 296 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_multiple_expressions() 300 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(200.)), in test_mq_multiple_expressions() 312 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_multiple_expressions() 316 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(200.)), in test_mq_multiple_expressions()
|
H A D | attr.rs | 82 check("0", LengthOrPercentageOrAuto::Length(Au::from_px(0))); in test_parse_length() 87 check("12 followed by invalid", LengthOrPercentageOrAuto::Length(Au::from_px(12))); in test_parse_length()
|
/dports/graphics/art/ART-1.9.3/rtgui/ |
H A D | resize.cc | 476 h->set_value (from_px(getComputedHeight())); in entryWChanged() 509 w->set_value(from_px(getComputedWidth())); in entryHChanged() 541 w->set_value(from_px(getComputedWidth())); in specChanged() 547 h->set_value(from_px(getComputedHeight())); in specChanged() 656 w->set_range(from_px(32), from_px(factor * refw)); in setRanges() 657 h->set_range(from_px(32), from_px(factor * refh)); in setRanges() 705 double nw = from_px(pw, prev_unit); in unitChanged() 706 double nh = from_px(ph, prev_unit); in unitChanged() 752 double Resize::from_px(int p, ResizeParams::Unit u) in from_px() function in Resize 765 double Resize::from_px(int p) in from_px() function in Resize [all …]
|
H A D | resize.h | 75 double from_px(int p, rtengine::procparams::ResizeParams::Unit u); 76 double from_px(int p);
|
/dports/www/miniserve/miniserve-0.18.0/cargo-crates/grass-0.10.8/src/unit/ |
H A D | conversion.rs | 68 let mut from_px = HashMap::new(); localVariable 69 from_px.insert(Unit::In, Number::from(96)); 70 from_px.insert(Unit::Cm, Number::from(96) / Number::from(2.54)); 71 from_px.insert(Unit::Pc, Number::from(16)); 72 from_px.insert(Unit::Mm, Number::from(96) / Number::from(25.4)); 73 from_px.insert(Unit::Q, Number::from(96) / Number::from(101.6)); 74 from_px.insert(Unit::Pt, Number::small_ratio(4, 3)); 75 from_px.insert(Unit::Px, Number::one()); 139 m.insert(Unit::Px, from_px);
|
/dports/www/firefox-esr/firefox-91.8.0/servo/tests/unit/style/ |
H A D | media_queries.rs | 197 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_default_expressions() 209 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_default_expressions() 224 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_expressions() 236 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_expressions() 248 … ExpressionKind::Width(Range::Eq(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_expressions() 261 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(52.)), in test_mq_expressions() 285 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_multiple_expressions() 289 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(200.)), in test_mq_multiple_expressions() 301 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_multiple_expressions() 305 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(200.)), in test_mq_multiple_expressions()
|
H A D | attr.rs | 82 check("0", LengthPercentageOrAuto::Length(Au::from_px(0))); in test_parse_length() 87 check("12 followed by invalid", LengthPercentageOrAuto::Length(Au::from_px(12))); in test_parse_length()
|
/dports/www/firefox/firefox-99.0/servo/tests/unit/style/ |
H A D | media_queries.rs | 197 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_default_expressions() 209 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_default_expressions() 224 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_expressions() 236 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_expressions() 248 … ExpressionKind::Width(Range::Eq(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_expressions() 261 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(52.)), in test_mq_expressions() 285 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_multiple_expressions() 289 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(200.)), in test_mq_multiple_expressions() 301 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_multiple_expressions() 305 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(200.)), in test_mq_multiple_expressions()
|
H A D | attr.rs | 82 check("0", LengthPercentageOrAuto::Length(Au::from_px(0))); in test_parse_length() 87 check("12 followed by invalid", LengthPercentageOrAuto::Length(Au::from_px(12))); in test_parse_length()
|
/dports/mail/thunderbird/thunderbird-91.8.0/servo/tests/unit/style/ |
H A D | media_queries.rs | 197 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_default_expressions() 209 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_default_expressions() 224 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_expressions() 236 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_expressions() 248 … ExpressionKind::Width(Range::Eq(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_expressions() 261 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(52.)), in test_mq_expressions() 285 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_multiple_expressions() 289 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(200.)), in test_mq_multiple_expressions() 301 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_multiple_expressions() 305 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(200.)), in test_mq_multiple_expressions()
|
H A D | attr.rs | 82 check("0", LengthPercentageOrAuto::Length(Au::from_px(0))); in test_parse_length() 87 check("12 followed by invalid", LengthPercentageOrAuto::Length(Au::from_px(12))); in test_parse_length()
|
/dports/lang/spidermonkey78/firefox-78.9.0/servo/tests/unit/style/ |
H A D | media_queries.rs | 197 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_default_expressions() 209 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_default_expressions() 224 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_expressions() 236 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_expressions() 248 … ExpressionKind::Width(Range::Eq(ref w)) => assert!(*w == specified::Length::from_px(43.)), in test_mq_expressions() 261 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(52.)), in test_mq_expressions() 285 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_multiple_expressions() 289 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(200.)), in test_mq_multiple_expressions() 301 … ExpressionKind::Width(Range::Min(ref w)) => assert!(*w == specified::Length::from_px(100.)), in test_mq_multiple_expressions() 305 … ExpressionKind::Width(Range::Max(ref w)) => assert!(*w == specified::Length::from_px(200.)), in test_mq_multiple_expressions()
|
H A D | attr.rs | 82 check("0", LengthPercentageOrAuto::Length(Au::from_px(0))); in test_parse_length() 87 check("12 followed by invalid", LengthPercentageOrAuto::Length(Au::from_px(12))); in test_parse_length()
|
/dports/lang/spidermonkey60/firefox-60.9.0/servo/components/style/values/specified/ |
H A D | border.rs | 86 BorderSideWidth::Thin => Length::from_px(1.).to_computed_value(context), in to_computed_value() 87 BorderSideWidth::Medium => Length::from_px(3.).to_computed_value(context), in to_computed_value() 88 BorderSideWidth::Thick => Length::from_px(5.).to_computed_value(context), in to_computed_value()
|
H A D | length.rs | 495 pub fn from_px(px_value: CSSFloat) -> NoCalcLength { in from_px() method 620 pub fn from_px(px_value: CSSFloat) -> Length { in from_px() method 621 Length::NoCalc(NoCalcLength::from_px(px_value)) in from_px() 677 pub fn from_px(px_value: CSSFloat) -> Self { in from_px() method 678 Length::from_px(px_value.max(0.)).into() in from_px() 766 return Ok(LengthOrPercentage::Length(NoCalcLength::from_px(value))) in parse_internal()
|
/dports/www/firefox-esr/firefox-91.8.0/servo/components/style/values/specified/ |
H A D | border.rs | 155 BorderSideWidth::Thin => NonNegativeLength::from_px(1.).to_computed_value(context), in to_computed_value() 156 BorderSideWidth::Medium => NonNegativeLength::from_px(3.).to_computed_value(context), in to_computed_value() 157 BorderSideWidth::Thick => NonNegativeLength::from_px(5.).to_computed_value(context), in to_computed_value()
|
/dports/www/firefox/firefox-99.0/servo/components/style/values/specified/ |
H A D | border.rs | 155 BorderSideWidth::Thin => NonNegativeLength::from_px(1.).to_computed_value(context), in to_computed_value() 156 BorderSideWidth::Medium => NonNegativeLength::from_px(3.).to_computed_value(context), in to_computed_value() 157 BorderSideWidth::Thick => NonNegativeLength::from_px(5.).to_computed_value(context), in to_computed_value()
|
/dports/mail/thunderbird/thunderbird-91.8.0/servo/components/style/values/specified/ |
H A D | border.rs | 155 BorderSideWidth::Thin => NonNegativeLength::from_px(1.).to_computed_value(context), in to_computed_value() 156 BorderSideWidth::Medium => NonNegativeLength::from_px(3.).to_computed_value(context), in to_computed_value() 157 BorderSideWidth::Thick => NonNegativeLength::from_px(5.).to_computed_value(context), in to_computed_value()
|
/dports/lang/spidermonkey78/firefox-78.9.0/servo/components/style/values/specified/ |
H A D | border.rs | 154 BorderSideWidth::Thin => NonNegativeLength::from_px(1.).to_computed_value(context), in to_computed_value() 155 BorderSideWidth::Medium => NonNegativeLength::from_px(3.).to_computed_value(context), in to_computed_value() 156 BorderSideWidth::Thick => NonNegativeLength::from_px(5.).to_computed_value(context), in to_computed_value()
|