31
31
%>
32
32
use values:: computed:: ComputedValueAsSpecified ;
33
33
use style_traits:: ToCss ;
34
- use values:: HasViewportPercentage ;
35
34
no_viewport_percentage!( SpecifiedValue ) ;
36
35
37
36
pub mod computed_value {
@@ -170,7 +169,6 @@ ${helpers.single_keyword("position", "static absolute relative fixed",
170
169
gecko_inexhaustive ="True "
171
170
gecko_ffi_name ="mFloat"
172
171
spec ="https : //drafts. csswg. org/css-box/#propdef-float ">
173
- use values:: HasViewportPercentage ;
174
172
no_viewport_percentage ! ( SpecifiedValue ) ;
175
173
impl ToComputedValue for SpecifiedValue {
176
174
type ComputedValue = computed_value:: T ;
@@ -209,7 +207,6 @@ ${helpers.single_keyword("position", "static absolute relative fixed",
209
207
gecko_enum_prefix="StyleClear"
210
208
gecko_ffi_name="mBreakType"
211
209
spec="https://www.w3.org/TR/CSS2/visuren.html#flow-control" >
212
- use values:: HasViewportPercentage ;
213
210
no_viewport_percentage ! ( SpecifiedValue ) ;
214
211
impl ToComputedValue for SpecifiedValue {
215
212
type ComputedValue = computed_value:: T ;
@@ -263,7 +260,6 @@ ${helpers.single_keyword("position", "static absolute relative fixed",
263
260
spec ="https://www.w3.org/TR/CSS2/visudet.html#propdef-vertical-align" >
264
261
use std:: fmt;
265
262
use style_traits:: ToCss ;
266
- use values:: HasViewportPercentage ;
267
263
use values:: specified:: AllowQuirks ;
268
264
269
265
<% vertical_align = data. longhands_by_name [ "vertical-align" ] %>
@@ -312,10 +308,9 @@ ${helpers.single_keyword("position", "static absolute relative fixed",
312
308
313
309
/// The computed value for `vertical-align`.
314
310
pub mod computed_value {
315
- use app_units:: Au ;
316
311
use std:: fmt;
317
312
use style_traits:: ToCss ;
318
- use values:: { CSSFloat , computed} ;
313
+ use values:: computed;
319
314
320
315
/// The keywords are the same, and the `LengthOrPercentage` is computed
321
316
/// here.
@@ -417,7 +412,6 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto",
417
412
use values:: specified:: Time ;
418
413
419
414
pub use values:: specified:: Time as SpecifiedValue ;
420
- use values:: HasViewportPercentage ;
421
415
no_viewport_percentage ! ( SpecifiedValue ) ;
422
416
423
417
pub mod computed_value {
@@ -449,7 +443,6 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto",
449
443
use values:: specified:: Number ;
450
444
use euclid:: point:: { Point2D , TypedPoint2D } ;
451
445
use std:: fmt;
452
- use std:: marker:: PhantomData ;
453
446
use style_traits:: ToCss ;
454
447
455
448
// FIXME: This could use static variables and const functions when they are available.
@@ -490,7 +483,6 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto",
490
483
491
484
pub mod computed_value {
492
485
use euclid:: point:: Point2D ;
493
- use parser:: { Parse , ParserContext } ;
494
486
use std:: fmt;
495
487
use style_traits:: ToCss ;
496
488
use super :: FunctionKeyword ;
@@ -755,7 +747,6 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto",
755
747
}
756
748
}
757
749
758
- use values:: HasViewportPercentage ;
759
750
no_viewport_percentage ! ( SpecifiedValue ) ;
760
751
761
752
#[ inline]
@@ -786,8 +777,6 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto",
786
777
pub use properties:: animated_properties:: TransitionProperty as SpecifiedValue ;
787
778
788
779
pub mod computed_value {
789
- use std:: fmt;
790
- use style_traits:: ToCss ;
791
780
// NB: Can't generate the type here because it needs all the longhands
792
781
// generated beforehand.
793
782
pub use super :: SpecifiedValue as T ;
@@ -801,7 +790,6 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto",
801
790
TransitionProperty :: All
802
791
}
803
792
804
- use values:: HasViewportPercentage ;
805
793
no_viewport_percentage ! ( SpecifiedValue ) ;
806
794
807
795
impl ComputedValueAsSpecified for SpecifiedValue { }
@@ -830,10 +818,9 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto",
830
818
spec="https://drafts.csswg.org/css-animations/#propdef-animation-name" >
831
819
use Atom ;
832
820
use std:: fmt;
833
- use std:: ops:: Deref ;
834
821
use style_traits:: ToCss ;
835
822
use values:: computed:: ComputedValueAsSpecified ;
836
- use values:: { HasViewportPercentage , KeyframesName } ;
823
+ use values:: KeyframesName ;
837
824
838
825
pub mod computed_value {
839
826
pub use super :: SpecifiedValue as T ;
@@ -928,7 +915,6 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto",
928
915
use std:: fmt;
929
916
use style_traits:: ToCss ;
930
917
use values:: computed:: ComputedValueAsSpecified ;
931
- use values:: HasViewportPercentage ;
932
918
933
919
pub mod computed_value {
934
920
pub use super :: SpecifiedValue as T ;
@@ -1036,7 +1022,6 @@ ${helpers.single_keyword("animation-fill-mode",
1036
1022
spec="Nonstandard (https://www.w3.org/TR/2015/WD-css-snappoints-1-20150326/#scroll-snap-points)" >
1037
1023
use std:: fmt;
1038
1024
use style_traits:: ToCss ;
1039
- use values:: HasViewportPercentage ;
1040
1025
use values:: specified:: LengthOrPercentage ;
1041
1026
1042
1027
pub mod computed_value {
@@ -1157,9 +1142,8 @@ ${helpers.predefined_type("scroll-snap-coordinate",
1157
1142
use values:: specified:: { LengthOrNumber , LengthOrPercentageOrNumber as LoPoNumber , Number } ;
1158
1143
use style_traits:: ToCss ;
1159
1144
use style_traits:: values:: Css ;
1160
- use values:: HasViewportPercentage ;
1161
1145
1162
- use std:: fmt:: { self , Display } ;
1146
+ use std:: fmt;
1163
1147
1164
1148
pub mod computed_value {
1165
1149
use app_units:: Au ;
@@ -2121,7 +2105,6 @@ ${helpers.single_keyword("transform-style",
2121
2105
use app_units:: Au ;
2122
2106
use std:: fmt;
2123
2107
use style_traits:: ToCss ;
2124
- use values:: HasViewportPercentage ;
2125
2108
use values:: specified:: { NoCalcLength , LengthOrPercentage , Percentage } ;
2126
2109
2127
2110
pub mod computed_value {
@@ -2239,7 +2222,6 @@ ${helpers.single_keyword("transform-style",
2239
2222
spec="https: //drafts. csswg. org/css-contain/#contain-property">
2240
2223
use std:: fmt;
2241
2224
use style_traits:: ToCss ;
2242
- use values:: HasViewportPercentage ;
2243
2225
use values:: computed:: ComputedValueAsSpecified ;
2244
2226
2245
2227
impl ComputedValueAsSpecified for SpecifiedValue { }
@@ -2392,7 +2374,6 @@ ${helpers.single_keyword("-moz-orient",
2392
2374
use cssparser:: serialize_identifier;
2393
2375
use std:: fmt;
2394
2376
use style_traits:: ToCss ;
2395
- use values:: HasViewportPercentage ;
2396
2377
use values:: computed:: ComputedValueAsSpecified ;
2397
2378
2398
2379
impl ComputedValueAsSpecified for SpecifiedValue { }
@@ -2465,7 +2446,6 @@ ${helpers.predefined_type("shape-outside", "basic_shape::ShapeWithShapeBox",
2465
2446
use gecko_bindings:: structs;
2466
2447
use std:: fmt;
2467
2448
use style_traits:: ToCss ;
2468
- use values:: HasViewportPercentage ;
2469
2449
use values:: computed:: ComputedValueAsSpecified ;
2470
2450
2471
2451
impl ComputedValueAsSpecified for SpecifiedValue { }
0 commit comments