aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/binding_tools/regen.py
Commit message (Collapse)AuthorAgeFilesLines
* Do build-time bindgenXidorn Quan2016-12-101-820/+0
| | | | | | | Majority of build_gecko.rs is just the straightforward conversion from regen.py. There are two differences that: 1. Side in whitelist is changed to mozilla::Side 2. std::atomic__My_base is added to opaque types for Windows
* Update regen.py for recent mozilla-central and rust-bindgen.Cameron McCormack2016-12-081-1/+4
|
* stylo: Whitelist some stuff to work-around bindgen generating too many tests.Emilio Cobos Álvarez2016-12-081-0/+3
|
* stylo: Use proper namespaces in bindings.Emilio Cobos Álvarez2016-12-081-20/+53
| | | | This allows us to incrementally remove both bindgen hacks and stylo hacks.
* stylo: Use bindgen master again.Emilio Cobos Álvarez2016-12-051-38/+34
| | | | | Stylo has been stuck with an old version of bindgen from quite a bit of time, this commit does the minimal stuff to put it working again with master.
* Update regen.py for recent mozilla-central changes.Cameron McCormack2016-12-031-1/+1
|
* Add insertRule/deleteRule support for styloXidorn Quan2016-12-011-1/+2
|
* Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal.Bobby Holley2016-11-241-5/+19
| | | | MozReview-Commit-ID: 7wH5XcILVmX
* Add stylo FFI for CSSStyleRuleXidorn Quan2016-11-241-1/+2
|
* Add stylo FFI for CSSRuleListXidorn Quan2016-11-241-1/+14
|
* Auto merge of #14268 - Manishearth:regen, r=bholleybors-servo2016-11-211-0/+6
|\ | | | | | | | | | | | | | | | | | | | | Regenerate bindings Don't merge yet <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14268) <!-- Reviewable:end -->
| * Uplift bitfield fix for nsChangeHintManish Goregaokar2016-11-181-0/+6
| |
* | Regenerate bindings.Cameron McCormack2016-11-211-0/+1
|/ | | | MozReview-Commit-ID: LLZf2HKBpjF
* stylo: support transformManish Goregaokar2016-11-101-3/+21
|
* Auto merge of #14038 - upsuper:bug1294299, r=heycambors-servo2016-11-031-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Element.style support for stylo <!-- Please describe your changes on the following line: --> This is the Servo side change of [bug 1294299](https://bugzilla.mozilla.org/show_bug.cgi?id=1294299) which has been reviewed by @heycam, @emilio, and @SimonSapin. This should not be merged until the Gecko side change gets merged into mozilla-central. r? @heycam --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14038) <!-- Reviewable:end -->
| * Add binding functions for length and item getter of DeclarationBlockXidorn Quan2016-11-031-1/+3
| |
* | Whitelist ThreadSafeFooHolder types in bindings.rs.Cameron McCormack2016-11-031-0/+1
|/
* Regenerate bindings for mozilla-central rev ↵Bobby Holley2016-10-301-0/+1
| | | | e3279760cd977aac30bd9e8032d3ee71f55d2a67.
* Auto merge of #13974 - heycam:rm-bindgen-option, r=emiliobors-servo2016-10-291-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop passing now-unrecognized --no-type-renaming to rust-bindgen. <!-- Please describe your changes on the following line: --> r? @emilio --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13974) <!-- Reviewable:end -->
| * Stop passing now-unrecognized --no-type-renaming to rust-bindgen.Cameron McCormack2016-10-291-1/+1
| |
* | Rename NodeData and associated data structures to Element*.Bobby Holley2016-10-291-2/+2
|/ | | | MozReview-Commit-ID: 96VsmsoZtjZ
* Regenerate bindings.Cameron McCormack2016-10-281-0/+1
| | | | MozReview-Commit-ID: LTpO8Kt3ALk
* Use nsACString to pass string params for bindingsXidorn Quan2016-10-251-1/+7
|
* Move RawGecko{Node,Element,Document} to bindingsXidorn Quan2016-10-241-6/+8
|
* Use str for bindgen output directly.Xidorn Quan2016-10-221-3/+3
|
* Rearrange some data structures in preparation for the new incremental ↵Bobby Holley2016-10-211-3/+3
| | | | | | restyle algorithm. MozReview-Commit-ID: 8iOALQylOuK
* Regenerate bindings.Cameron McCormack2016-10-191-0/+1
|
* Declare nullable strong borrowed ref type for RawServoDeclarationBlock.Manish Goregaokar2016-10-181-0/+1
|
* Rename ServoDeclarationBlock to RawServoDeclarationBlock.Xidorn Quan2016-10-181-1/+1
|
* Make some lists in regen.py neater.Cameron McCormack2016-10-171-72/+149
|
* Add bindings for constructing nsStyleQuoteValuesManish Goregaokar2016-10-141-1/+1
| | | | MozReview-Commit-ID: EjuzgZKMpPp
* Vendor m-c's nsstring in-treeManish Goregaokar2016-10-121-0/+7
| | | | | | | | It is called nsstring_vendor since libgkrust already depends on nsstring, and we can't have two crates with the same name in-tree. We can't directly depend on the in-tree one since this will stop independent `./mach build-geckolib` builds from working. MozReview-Commit-ID: CR4tHgzXWFZ
* Auto merge of #13700 - Manishearth:bindgen-testing, r=emiliobors-servo2016-10-121-41/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Run bindings tests with whole crate We currently run bindgen's autogenerated `#[test]` blocks directly on the structs files. That is, after generating them, we run `rustc --test` on them. This works fine for now, but if you want to refer to types defined outside of these files (e.g. in https://bugzilla.mozilla.org/show_bug.cgi?id=1309165), the tests are broken. This puts a `cargo test -p style` in `./mach test-stylo`. I disabled doctests because they were failing (unable to find the `ns!()` and `atom!()` macros), and I couldn't figure out why -- will investigate in a later bug. r? @emilio <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13700) <!-- Reviewable:end -->
| * Run bindings tests with whole crateManish Goregaokar2016-10-121-41/+1
| |
* | Fix bindings.rs warnings.Bobby Holley2016-10-111-7/+5
|/ | | | MozReview-Commit-ID: G03MWTQMkWt
* Regen bindingsManish Goregaokar2016-10-101-1/+1
|
* Import NS_FONT_* constants for font-* glueRavi Shankar2016-10-091-2/+1
|
* Auto merge of #13569 - Manishearth:simpliffi, r=emiliobors-servo2016-10-051-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Start simplifying FFI ownership sugar This is step one of a series of changes planned to make the ownership sugar easier to use. This was blocked on #13038 *very* unsure about second commit. Don't like the thought of accepting types with destructors over FFI. Probably will revert it. Leaving it in for now in case you have some insight. Eventually at least for the borrowed stuff I want to use T directly (because the crates are merged now), instead of the fake void types. Perhaps for the others too. I might include those changes in this PR -- was originally planning to but I realized that these steps could be split out. Tentative plan for `Owned` (assuming it's not removed) is to have `Owned<T> <-> Box<T>` (same `T`, no "FFI type") conversions. We will only use ownership wrapper types for things with destructors, and try to keep the conversion simple. I'm envisioning a couple methods for arc/strong and a few more for box/owned. We may need to introduce new wrapper types for gecko-side managed objects (`RefPtr<T>`, `UniquePtr<T>`) but that should be all the wrapper types we have in the ownership sugar. This PR relies on the guarantee that `Option<&T>` and `Option<Box<T>>` are pointer-sized via the `NonZero` optimization. I am now less unconvinced that this is a good idea :wink:. r? @emilio cc @mystor <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13569) <!-- Reviewable:end -->
| * Remove Borrowed<T>/BorrowedMut<T>, use Option<&T> instead.Manish Goregaokar2016-10-041-4/+4
| |
* | Add NS_FONT_STRETCH_* to bindgen scriptRavi Shankar2016-10-031-0/+2
|/
* Auto merge of #13518 - upsuper:patch-1, r=emiliobors-servo2016-10-011-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | Move --use-msvc-mangling out from clang flags. `--use-msvc-mangling` is not a clang flag, but a flag for bindgen. r? @emilio <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13518) <!-- Reviewable:end -->
| * Move --use-msvc-mangling out from clang flags.Xidorn Quan2016-09-301-1/+3
| |
* | Fix indent in regen.py; fix importsManish Goregaokar2016-09-281-2/+2
|/
* Move most of geckolib into style::geckoManish Goregaokar2016-09-261-3/+6
|
* Move gecko_bindings and gecko_string_cache into the style crateManish Goregaokar2016-09-241-0/+668