gecko-dev/servo/components/style
Nazım Can Altınova 8e46cd609a servo: Merge #16231 - stylo: Implement -moz-transform property (from canaltinova:moz-transform); r=Manishearth
-moz-transform property is an alias shorthand property. It has transform as sub-property but their parsing is different in some cases(matrix/matrix3d). -moz-transform also accepts LengthOrPercentage in the nondiagonal homogeneous components of matrix and matrix3d.

It looks like length and percentage values are getting computed to number directly. For example 120px converts into 120 and calc(120px + 20%) converts into 140. So I did like this. But we need to check this behavior again to be sure, I guess.

Also I spent half day investigating why matrices are not serializing after this change and found out their ToCss functions is not completely implemented yet 😄 I was going to implement them but there is an easy issue about it(#15194) so I left it that way. Probably all tests won't pass without it.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #16003 and [Bug 1351356](https://bugzilla.mozilla.org/show_bug.cgi?id=1351356)

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: b8b4ec92df9729f8d07ff1d2b6e3e3474a978b6c

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : ce8d1ba04a88444d82420e4740b137388afef3b5
2017-04-19 17:37:07 -05:00
..
binding_tools servo: Merge #16168 - Update Gecko atom bindings for Gecko bug 1351139 (from bzbarsky:update-atoms); r=Manishearth 2017-03-28 21:52:36 -05:00
gecko servo: Merge #16527 - stylo: Bug 1353628 - Support shorthand properties for CSS Transition (from BorisChiou:stylo/transition/shorthands); r=emilio 2017-04-19 07:35:09 -05:00
gecko_bindings servo: Merge #16524 - Revert #16517 for Gecko heap write hazard failures (from heycam:backout-system-fonts); r=heycam 2017-04-19 01:56:10 -05:00
gecko_string_cache servo: Merge #16524 - Revert #16517 for Gecko heap write hazard failures (from heycam:backout-system-fonts); r=heycam 2017-04-19 01:56:10 -05:00
properties servo: Merge #16231 - stylo: Implement -moz-transform property (from canaltinova:moz-transform); r=Manishearth 2017-04-19 17:37:07 -05:00
rule_tree servo: Merge #15562 - style: Tweak rule tree memory ordering (from emilio:rule-mem-order); r=bholley 2017-04-03 15:15:49 -05:00
servo servo: Merge #16421 - Font variant shorthand (from hiikezoe:font-variant-shorthand); r=heycam 2017-04-13 20:48:14 -05:00
values servo: Merge #16495 - Make tidy check that opening and closing braces that begin a line do … (from coalman:tidy-brace-alignment); r=emilio 2017-04-19 03:06:31 -05:00
animation.rs servo: Merge #16527 - stylo: Bug 1353628 - Support shorthand properties for CSS Transition (from BorisChiou:stylo/transition/shorthands); r=emilio 2017-04-19 07:35:09 -05:00
attr.rs servo: Merge #16495 - Make tidy check that opening and closing braces that begin a line do … (from coalman:tidy-brace-alignment); r=emilio 2017-04-19 03:06:31 -05:00
bezier.rs servo: Merge #14821 - More docs in style (from servo:docs-in-style); r=emilio 2017-01-02 02:08:01 -08:00
bloom.rs servo: Merge #16312 - Make the sequential traversal breadth-first (from bholley:breadth_first_sequential); r=emilio 2017-04-09 01:55:09 -05:00
build_gecko.rs servo: Merge #16454 - Stylo: SVG length parsing mode (from jryans:svg-parse-unitless); r=emilio 2017-04-14 04:49:29 -05:00
build.rs servo: Merge #16022 - stylo: Add a build log mechanism (from emilio:stylo-build-log); r=upsuper 2017-03-18 06:45:01 -07:00
cache.rs servo: Merge #16432 - Coalesce duplicate selector flags and improve LRUCache (from bholley:faster_selector_flags); r=bholley 2017-04-13 08:56:03 -05:00
Cargo.toml servo: Merge #16358 - Fix up the style sharing cache (from bholley:style_sharing_fixes); r=emilio 2017-04-11 22:52:23 -05:00
cascade_info.rs servo: Merge #14802 - Document more style modules (from emilio:no-missing-docs); r=Wafflespeanut 2016-12-31 15:34:51 -08:00
context.rs servo: Merge #16496 - stylo: Bug 1341372 - Detect new transitions and let it run (from BorisChiou:stylo/transition/trigger); r=heycam 2017-04-17 05:07:23 -05:00
custom_properties.rs servo: Merge #15997 - Rearrange PropertyDeclaration to avoid embedding DeclaredValue (from bholley:rearrange_propdecl); r=mbrubeck 2017-03-16 14:48:53 -07:00
data.rs servo: Merge #16496 - stylo: Bug 1341372 - Detect new transitions and let it run (from BorisChiou:stylo/transition/trigger); r=heycam 2017-04-17 05:07:23 -05:00
dom.rs servo: Merge #16496 - stylo: Bug 1341372 - Detect new transitions and let it run (from BorisChiou:stylo/transition/trigger); r=heycam 2017-04-17 05:07:23 -05:00
element_state.rs servo: Merge #16177 - Bug 1350140: stylo: Implement all the remaining state pseudo-classes (from emilio:stylo-pseudo-classes); r=heycam,jdm 2017-03-29 08:48:12 -05:00
encoding_support.rs servo: Merge #16394 - Support line number offsets for inline stylesheets (from mckaymatt:line_num_offset__issue_15693); r=SimonSapin 2017-04-13 20:12:08 -05:00
error_reporting.rs servo: Merge #16394 - Support line number offsets for inline stylesheets (from mckaymatt:line_num_offset__issue_15693); r=SimonSapin 2017-04-13 20:12:08 -05:00
font_face.rs servo: Merge #16224 - Make the parser accept @font-face rules without font-family or src (from servo:valid-fontface); r=upsuper 2017-04-03 03:53:09 -05:00
font_metrics.rs servo: Merge #16333 - stylo: support font metrics (from Manishearth:stylo-metrics); r=heycam 2017-04-10 01:35:18 -05:00
keyframes.rs servo: Merge #16454 - Stylo: SVG length parsing mode (from jryans:svg-parse-unitless); r=emilio 2017-04-14 04:49:29 -05:00
lib.rs servo: Merge #16516 - stylo: Centralize stylesheet handling (from emilio:stylesheet-handling); r=bholley 2017-04-19 03:41:08 -05:00
logical_geometry.rs servo: Merge #16488 - style: add Gecko-only support for sideways-{lr,rl} and deprecated SVG 1.1 writing-mode values (from heycam:wm); r=Manishearth 2017-04-16 20:26:18 -05:00
matching.rs servo: Merge #16496 - stylo: Bug 1341372 - Detect new transitions and let it run (from BorisChiou:stylo/transition/trigger); r=heycam 2017-04-17 05:07:23 -05:00
media_queries.rs servo: Merge #16378 - stylo: A bunch of media query fixes (from emilio:media-fixes); r=upsuper 2017-04-12 10:00:26 -05:00
parallel.rs servo: Merge #16379 - Limit traversal statistics dumps to subtrees of 50 or more elements and add more values (from bholley:quieter_stats); r=SimonSapin 2017-04-13 01:44:12 -05:00
parser.rs servo: Merge #16454 - Stylo: SVG length parsing mode (from jryans:svg-parse-unitless); r=emilio 2017-04-14 04:49:29 -05:00
README.md servo: Merge #10934 - style: Add infrastructure to support lazy pseudo-elements (from emilio:other-gecko-pseudos); r=bholley,mbrubeck 2016-05-04 03:42:23 -07:00
restyle_hints.rs servo: Merge #16521 - Store bloom filter hashes inline in the selector (from bholley:precompute_hashes); r=emilio 2017-04-19 02:32:18 -05:00
scoped_tls.rs servo: Merge #15119 - Add style performance statistics to Servo (from bholley:traversal_stats); r=emilio 2017-01-19 15:27:34 -08:00
selector_parser.rs servo: Merge #16293 - style: Refactor the selectors crate to remove ad-hoc logic (from emilio:refactor-selectors); r=bholley 2017-04-09 05:17:55 -05:00
sequential.rs servo: Merge #16379 - Limit traversal statistics dumps to subtrees of 50 or more elements and add more values (from bholley:quieter_stats); r=SimonSapin 2017-04-13 01:44:12 -05:00
shared_lock.rs servo: Merge #16053 - Use AtomicRefCell instead of RwLock inside SharedRwLock for stylo (from bholley:shared_lock_atomic_refcell); r=bholley 2017-03-20 17:00:31 -07:00
sink.rs servo: Merge #14819 - Document most of the remaining parts of the style system, make docs-by-default for the whole style system (from emilio:no-missing-docs); r=Manishearth 2017-01-02 04:10:56 -08:00
str.rs servo: Merge #15735 - Update cssparser to 0.11 (from servo:cssparserup); r=emilio 2017-02-26 02:19:32 -08:00
stylesheet_set.rs servo: Merge #16516 - stylo: Centralize stylesheet handling (from emilio:stylesheet-handling); r=bholley 2017-04-19 03:41:08 -05:00
stylesheets.rs servo: Merge #16454 - Stylo: SVG length parsing mode (from jryans:svg-parse-unitless); r=emilio 2017-04-14 04:49:29 -05:00
stylist.rs servo: Merge #16516 - stylo: Centralize stylesheet handling (from emilio:stylesheet-handling); r=bholley 2017-04-19 03:41:08 -05:00
supports.rs servo: Merge #16373 - Stylo: Disable viewport units for @page (from jryans:at-page-viewport-units); r=emilio 2017-04-12 05:38:50 -05:00
thread_state.rs servo: Merge #14896 - Tidy assignments (from g1smo:tidy-assignments); r=jdm 2017-01-07 09:40:46 -08:00
timer.rs servo: Merge #14801 - style: Document and force documentation in a big chunk of the style crate (from emilio:no-missing-docs); r=mbrubeck,Manishearth,Wafflespeanut 2016-12-31 03:19:02 -08:00
traversal.rs servo: Merge #16450 - stylo: Support keyword-valued media queries (from emilio:keyword-media-queries); r=heycam 2017-04-13 23:09:34 -05:00
viewport.rs servo: Merge #16373 - Stylo: Disable viewport units for @page (from jryans:at-page-viewport-units); r=emilio 2017-04-12 05:38:50 -05:00

servo-style

Style system for Servo, using rust-cssparser for parsing.