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