Hiroyuki Ikezoe
03d354afba
Rename animatable to animation_type.
...
animation_type takes following values:
animation_type="none" for non-animatable properties
animation_type="normal" for animatable properties
animation_type="discrete" for animatable but discrete type of animations
We use string value to distinguish the case where no animation_type is
specified.
animation_type="discrete" will be used in a subsequent patch to make a property
animatable as discrete type.
2017-04-07 10:38:28 +09:00
Nazım Can Altınova
a3862780ac
Add flags to longhands for gecko glue
...
The flags are creates_stacking_context, fixpos_cb and abspos_cb. These will be needed in will-change glue.
2017-03-21 21:10:01 +03:00
Bobby Holley
6744ed1639
Run size_of tests with test-stylo.
...
MozReview-Commit-ID: KapDMqX6OjH
2017-03-15 11:17:51 -07:00
Karan Singh
3d5b607ba5
Add remaining keyword values of -moz-user-select ( fixes #15197 )
2017-03-03 16:13:54 +01:00
Manish Goregaokar
b85e1f5f0c
stylo: Add helpers for converting Gecko keywords to Servo, use to support keyword pres attrs
2017-02-18 20:31:08 -08:00
Nazım Can Altınova
78afe2b8d1
Box larger specified values to avoid memmove impact
2017-02-09 11:10:08 +01:00
Xidorn Quan
2f2044e4b7
Add gecko leagcy logical properties aliases
2017-01-11 11:17:58 +11:00
Xidorn Quan
e494a0f0a7
Add prefixes parameter for properties
2017-01-11 11:17:55 +11:00
Hiroyuki Ikezoe
ff1db63922
single_keywords supports custom_consts map for enum. r=heycam
...
We need it to convert PlaybackDirection::Alternate_reverse in Gecko to
alternate-reverse in Servo.
2017-01-10 12:24:59 +09:00
Manish Goregaokar
33966a84fb
Support property aliases
2017-01-07 13:17:00 -08:00
Manish Goregaokar
ca6ada8b83
Make spec links mandatory
2017-01-03 14:03:39 -08:00
Manish Goregaokar
29c2db4457
Add spec argument to property helpers
2017-01-03 10:23:02 -08:00
Cameron McCormack
0ff7b5f2de
Support declaring keyword property Gecko coverage as inexhaustive.
...
This allows us to control whether the catchall case in the match expression
that maps Gecko const to Servo enum will be generated.
MozReview-Commit-ID: L65IjTONdfl
2016-12-05 21:38:58 -10:00
Manish Goregaokar
5fad7b0ff6
Add support for inline-size, block-size, and max-*-size/min-*-size
2016-11-11 11:56:27 -08:00
Manish Goregaokar
e34eb13d65
Support logical properties
2016-11-11 11:55:57 -08:00
Cameron McCormack
2d232cecb2
Support url() values in background-image and mask-image in stylo. r=manishearth
...
MozReview-Commit-ID: 7IUzzVV9rOi
2016-10-28 19:29:01 +08:00
Ravi Shankar
12f429e23b
Keyword argument for custom constant mapping
2016-10-26 11:56:54 +05:30
Ravi Shankar
af8899edf0
Merge keyword and predefined type longhands
2016-10-26 11:56:52 +05:30
Ravi Shankar
caa745cb81
Minor codegen refactor for auto-generating some predefined types
2016-10-22 14:20:06 +05:30
Manish Goregaokar
e1e512f86b
Run style unit tests in testing mode, disable some properties in testing mode
2016-09-28 10:00:36 +02:00
Manish Goregaokar
919bf17e51
Run style with all properties enabled
2016-09-23 15:10:40 +05:30
Manish Goregaokar
3fe13a29f4
Handle None_ => None enum changes
2016-09-09 16:34:15 +08:00
Simon Sapin
31864954ed
Typo fixes
2016-08-21 03:40:26 +02:00
Simon Sapin
ab846ab196
Make parsing of keyframe declaration blocks spec-compliant.
...
Exclude animation properties.
2016-08-21 03:40:24 +02:00
Bobby Holley
1cd76c2917
Handle enum classes for clonable properties.
2016-08-10 12:07:10 -07:00
Manish Goregaokar
c8bff6151e
Resync stylo bindings
...
Now at gecko-dev acf1cc9adeffe040dcdf7b7cf454cdd9657761e5
2016-07-26 15:14:24 +05:30
Simon Sapin
789807b7b0
Remove the ComputedValue traits and style_struct_traits
2016-07-20 08:42:40 +02:00
Shing Lyu
f754cacbd5
Only restyle viewport-relative nodes on viewport size change
2016-07-18 11:01:42 +08:00
Emilio Cobos Álvarez
30963dd74d
style: remove is_servo(), as_servo() and as_servo_mut()
...
This commit adds a need_index prop to the style system, and autogenerates
iterators, and a get_xxx_mod(i) function from a get_xxx_prop() and
get_xxx_at(index) functions.
This allows us to (finally!) take rid of the as_servo() hack. There are a few
unimplemented clones, but I'm just too lazy for that right now.
2016-07-01 14:22:53 -07:00
Emilio Cobos Álvarez
ba53c4ea8d
style: Add a generic way to deal with lists of values, ditch all uses of as_servo in style/animations.rs
2016-07-01 14:22:52 -07:00
Emilio Cobos Álvarez
faed3df594
style: Take down the global animatable props list and use a kwarg instead
2016-06-28 15:28:00 +00:00
Emilio Cobos Álvarez
173f489d7b
style: Add documentation lost in a rebase, plus implement box-shadow animations.
2016-06-28 15:27:59 +00:00
Emilio Cobos Álvarez
9cf2e52d36
tidy: Clean up warnings and tidy lints.
2016-06-28 15:09:53 +00:00
Emilio Cobos Álvarez
6a362ae8e8
style: Refactor all the animated properties to use the style system properly
2016-06-28 15:09:53 +00:00
Emilio Cobos Álvarez
818bc6d4a2
style: parse the remaining animation longhands.
2016-06-28 15:09:53 +00:00
Cameron McCormack
2b8f809852
Allow shorthands to be restricted to specific products.
2016-05-11 11:10:42 +10:00
Cameron McCormack
d69763b0c1
Generate geckolib setters for properties with simple predefined types.
2016-05-03 10:01:28 +10:00
Cameron McCormack
88f51af3f8
Add Servo_GetStyleFoo functions to get style structs from GeckoComputedValues.
...
While we're here we also:
* remove any code conditional on style_struct.gecko_ffi_name, since all
style structs now do have a corresponding Geckos struct
* add new UIReset and XUL style structs, so that all Gecko structs are
now present (apart from Variables, which is special)
2016-04-27 17:13:26 +10:00
Per Lundberg
4e8831457a
Moved the rest of the longhand structs to separate files.
...
Sorry for the bulk size of this; I know already it's not going to be a fun thing to review. Nevertheless, it should be done so we finalize the split of this huge file into smaller, more maintable parts.
The content of stuff being moved to separate files is unchanged. Only some minor formatting changes have been made and similar, but nothing of particular interest. IMHO it should be safe to merge if all the tests are fine.
2016-04-25 21:36:58 +03:00
Bobby Holley
bba4447637
Support the text-decoration-style property.
2016-04-21 23:57:35 -07:00
Bobby Holley
980c814e2a
Manually implement the display property for now.
2016-04-21 23:57:31 -07:00
Bobby Holley
a4ee11da0a
Track cloning separately from additional_methods and auto-generate clone methods.
2016-04-21 23:57:27 -07:00
Simon Sapin
515c5ef540
Tidy
2016-04-20 17:19:25 +02:00
Simon Sapin
2d8c17e600
Extract some Python code from properties.mako.rs into a separate file.
2016-04-20 15:30:27 +02:00