aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/properties/build.py
Commit message (Collapse)AuthorAgeFilesLines
* Move Stylo to its own repo (#31350)Delan Azabani2024-02-271-172/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove packages that were moved to external repo * Add workspace dependencies pointing to 2023-06-14 branch * Fix servo-tidy.toml errors * Update commit to include #31346 * Update commit to include servo/stylo#2 * Move css-properties.json lookup to target/doc/stylo * Remove dependency on vendored mako in favour of pypi dependency This also removes etc/ci/generate_workflow.py, which has been unused since at least 9e71bd6a7010d6e5723831696ae0ebe26b47682f. * Add temporary code to debug Windows test failures * Fix failures on Windows due to custom target dir * Update commit to include servo/stylo#3 * Fix license in tests/unit/style/build.rs * Document how to build with local Stylo in Cargo.toml
* Make the choice of layout runtime settingMartin Robinson2023-07-061-8/+4
| | | | Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
* style: Part 2 - Add page-size attribute to nsStyleStruct and property parsingOriol Brufau2023-05-161-0/+1
| | | | | | | | | | | This parsing is hidden behind the pref layout.css.page-size.enabled. It isn't ideal that we parse this as a property, but we can't treat it as a descriptor because of compatibility issues with other browsers. There are also outstanding spec issues related to how descriptors like page-size are cascaded, and whether the !important specifier is valid or not. Differential Revision: https://phabricator.services.mozilla.com/D103958
* Miscellaneous build / tidy fixes.Emilio Cobos Álvarez2021-02-261-1/+1
|
* Standardize on Black for Python code in `mozilla-central`.Ricky Stewart2021-02-261-20/+27
| | | | | | | | | | | | | | | | | Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly. To produce this patch I did all of the following: 1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions. 2. Run ./mach lint --linter black --fix 3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks. 4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023). Differential Revision: https://phabricator.services.mozilla.com/D94045
* style: Update mako in the style system.Emilio Cobos Álvarez2020-04-161-1/+1
| | | | | | | | | | | | | | | This uses Mako-1.1.2 wheel format, rather than zip, and works with py3 and py2. It'd be great to make mako more like other third party python dependencies but this allows me to build central again. This is downloaded from: https://files.pythonhosted.org/packages/50/78/f6ade1e18aebda570eed33b7c534378d9659351cadce2fcbc7b31be5f615/Mako-1.1.2-py2.py3-none-any.whl Via pip-download. Differential Revision: https://phabricator.services.mozilla.com/D70517
* style: Convert GenerateServoCSSPropList.py to py3.Mike Hommey2020-04-161-4/+4
| | | | Differential Revision: https://phabricator.services.mozilla.com/D70308
* Generate apis.html and css-properties.json for docs as part of crates’ ↵Simon Sapin2019-07-301-23/+20
| | | | | | | | build scripts … rather than as an extra step after `cargo doc`. This helps always using the correct set of CSS properties (for layout 2013 v.s. 2020).
* Stylo: replace product={gecko,servo} with engine={gecko,servo-2013,servo-2020}Simon Sapin2019-07-291-12/+17
| | | | Renaming the variable helped make sure I looked at every use.
* Auto-generate CSSStyleDeclaration.webidl for CSS properties based on the ↵Simon Sapin2019-07-291-0/+9
| | | | style crate
* style: Remove nsStyleColor moving the color property to nsStyleText.Emilio Cobos Álvarez2019-06-041-1/+0
| | | | | | | | I think this is a good change regardless of other discussion in bug 1552587. If we decide to move `mColor` to the top-level of the struct that can be done separately. Differential Revision: https://phabricator.services.mozilla.com/D32726
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* style: autopep8Sylvestre Ledru2018-07-241-2/+3
| | | | | | Bug: 1468273 Reviewed-by: ted MozReview-Commit-ID: 8j8EU3E08GP
* style: Fix tidy.Emilio Cobos Álvarez2018-06-231-6/+6
|
* style: Generate different files for different structs.Emilio Cobos Álvarez2018-06-231-4/+59
| | | | | | Bug: 1468651 Reviewed-by: heycam MozReview-Commit-ID: KEDJ1zJVwMx
* style: Generate property list from Servo data.Xidorn Quan2018-04-281-1/+7
| | | | | | Bug: 1452542 Reviewed-by: emilio,froydnj MozReview-Commit-ID: CwK2oL88r6F
* Kill RUSTC_HAS_PR45225 🎉Anthony Ramine2018-03-011-2/+1
|
* Fix Stylo tests to pass on both Stable and Nightly Rust.Simon Sapin2017-11-211-1/+2
| | | | | | | This is on top of https://github.com/servo/servo/pull/19285. Rust Nightly has new enum memory layout optimizations: https://github.com/rust-lang/rust/pull/45225
* style: Change experimental to servo_pref.Emilio Cobos Álvarez2017-11-161-1/+1
|
* Remove testing feature from style crateManish Goregaokar2017-08-071-4/+3
|
* Avoid random python address to be added to generated filesXidorn Quan2017-07-131-1/+9
|
* Use ascii_case_insensitive_phf_map! in PropertyId::parseSimon Sapin2017-02-261-14/+0
|
* Mako: configure included templates like the main one.Simon Sapin2017-01-241-1/+3
|
* Support property aliasesManish Goregaokar2017-01-071-6/+10
|
* Use rust-phf to map strings to property IDsSimon Sapin2016-12-091-0/+10
|
* Move PropertyDeclarationBlock into its own module.Simon Sapin2016-10-061-1/+2
|
* Run style with all properties enabledManish Goregaokar2016-09-231-3/+5
|
* Revert "Remove mako.zip"Emilio Cobos Álvarez2016-09-041-0/+1
| | | | This reverts commit 95e3f8333a116f9bd62fb071d08fcef269697804.
* Remove mako.zipcrypto-universe2016-09-011-1/+0
|
* Move geckolib/properties.mako.rs to style/properties/gecko.mako.rsSimon Sapin2016-07-201-5/+5
|
* Replace windows path sep with unix sepXidorn Quan2016-07-081-1/+1
| | | | | | | It seems python in msys2 has some weird behavior. For __file__, it returns a string which uses windows-style separator '\', however, os.path.dirname only recognizes the unix-style separator '/', and consequently, the path of Mako is not added properly.
* Auto merge of #10791 - servo:explicit-python-path, r=KiChjangbors-servo2016-04-211-0/+1
|\ | | | | | | | | | | | | | | | | | | | | Blind attempt at fixing a Python import error on Windows. See #10789. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10791) <!-- Reviewable:end -->
| * Blind attempt at fixing a Python import error on Windows.Simon Sapin2016-04-211-0/+1
| | | | | | | | See #10789.
* | Applied a bunch of suggestions from Simon.Per Lundberg2016-04-211-8/+1
| |
* | Improve properties.mako.rs file structure, take 2Per Lundberg2016-04-211-2/+12
|/ | | | This is a new attempt of #10586, after Simon Sapin's great cleanups in #10749 has landed. I have adjusted the changes to the new structure that was introduced, and also only done a few of the longhand ones. Will certainly continue on this as soon as we have a basic agreement that this style is reasonable.
* TidySimon Sapin2016-04-201-3/+2
|
* Extract some Python code from properties.mako.rs into a separate file.Simon Sapin2016-04-201-13/+26
|
* Move Mako-related files into a new sub-directory.Simon Sapin2016-04-201-0/+68
There’s gonna be more of them.