gecko-dev/servo/ports/geckolib/tools
Emilio Cobos Álvarez 18f790ca50 servo: Merge #10815 - style: Support anonymous box pseudo-elements (from emilio:anonbox-gcs); r=SimonSapin,bholley
This is a work-in-progress that:

 * Adds support for some pseudo-elements to skip the cascade entirely, in an analogous way to Gecko's anonymous box pseudo-elements.
 * Takes rid of `StylistWrapper`, and uses `Arc::get_mut` instead.
 * Uses the first bullet to precompute the `-servo-details-content` pseudo's style.

I'd like @bholley to take a look before following, do you think that the aproach is the correct?
Also, @SimonSapin could want to put some eyes on it.

Depends on https://github.com/servo/rust-selectors/pull/81

Source-Repo: https://github.com/servo/servo
Source-Revision: 407f991c8aba5dcf5312bb2c34a3dd4fe12e5471
2016-04-29 14:27:16 -07:00
..
.gitignore servo: Merge #10194 - geckolib: Add style structs bindings and documentation (from emilio:stylo-fixes-and-doc); r=bholley 2016-03-25 23:41:55 +05:01
README.md servo: Merge #10865 - Remove the need for custom clang to generate stylo bindings, plus misc other fixes (from bholley:simplify_bindgen); r=emilio 2016-04-26 19:51:13 -07:00
regen_bindings.sh servo: Merge #10815 - style: Support anonymous box pseudo-elements (from emilio:anonbox-gcs); r=SimonSapin,bholley 2016-04-29 14:27:16 -07:00
regen_style_structs.sh servo: Merge #10815 - style: Support anonymous box pseudo-elements (from emilio:anonbox-gcs); r=SimonSapin,bholley 2016-04-29 14:27:16 -07:00
setup_bindgen.sh servo: Merge #10865 - Remove the need for custom clang to generate stylo bindings, plus misc other fixes (from bholley:simplify_bindgen); r=emilio 2016-04-26 19:51:13 -07:00

README.md

GeckoLib tools

This directory contains mostly simple tools for working with stylo.

Some scripts require multirust in order to work.

You can see a description of them below.

setup_bindgen.sh

This uses downloads a custom version of bindgen, up to date to generate the bindings, and uses the custom clang to build it.

It will also rebuild it if it's already downloaded.

regen_bindings.sh

This will regenerate the bindings for the ServoBindings.h file in your gecko build (which are in ports/geckolib/bindings.rs).

regen_style_structs.sh

This will generate the bindings for Gecko's style structs. Current bindings are actually in ports/geckolib/gecko_style_structs.rs.