aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move Stylo to its own repo (#31350)Delan Azabani2024-02-271-23/+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
* style: Remove HasBoxFFIEmilio Cobos Álvarez2023-11-211-1/+0
| | | | | | | | | | HasBoxFFI and HasArcFFI aren't great, see bug 1831242 as for examples of why. HasArcFFI requires a bit more care, but HasBoxFFI doesn't give us much benefit. Instead use the same type in the FFI boundary. Differential Revision: https://phabricator.services.mozilla.com/D177252
* style: Remove the old profiler label frames code in the servo codebase and ↵Nazım Can Altınova2023-05-241-2/+0
| | | | | | replace it with the new API Differential Revision: https://phabricator.services.mozilla.com/D120795
* style: Remove nsCSSValue bindings.Emilio Cobos Álvarez2019-05-291-1/+0
| | | | | | Depends on D31320 Differential Revision: https://phabricator.services.mozilla.com/D31321
* style: Add Gecko profiler labels for when the style threads are doing work.Cameron McCormack2019-05-291-0/+2
| | | | Differential Revision: https://phabricator.services.mozilla.com/D30869
* style: Add FFI API to use SharedMemoryBuilder.Cameron McCormack2019-04-121-0/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D17198
* style: Make Servo use a single thread-pool for layout-related tasks per-process.Emilio Cobos Álvarez2018-12-231-1/+0
| | | | | | Instead of per-document. This also allows to reuse this thread-pool if needed for other stuff, like parallel CSS parsing (#22478), and to share more code with Gecko, which is always nice.
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* style: Rewrite media queries so that they work on an evaluator function.Emilio Cobos Álvarez2018-08-181-0/+1
| | | | | | | | This moves most of the code to be Rust, except potentially some evaluator functions, and allows to unblock the use case from any-hover / any-pointer and remove nsMediaFeatures. Differential Revision: https://phabricator.services.mozilla.com/D2976
* Backed out changeset fec394734f83 (bug 17624) for build bustage a=backout ↵Gecko Backout2017-07-061-1/+0
| | | | | | CLOSED TREE Backs out https://github.com/servo/servo/pull/17624
* stylo: Create error reporters linked to documents (bug 1352669)Josh Matthews2017-07-061-0/+1
|
* Bug 1364412: Convert pseudo-elements to an enum. r=hiro,xidornEmilio Cobos Álvarez2017-05-161-0/+1
|
* Use Gecko nsCSSFontFaceRule for font face rule.Xidorn Quan2017-03-301-0/+1
|
* Don't resolve URLs at parse time for Stylo.Bobby Holley2017-03-221-0/+1
| | | | | | | | | | | | | It's a bit unfortunate the use separate implementations of SpecifiedUrl for Servo and Gecko, but they're different enough at this point that I don't think it really makes sense to try to share everything. Splitting them out has some nice simplifications as well. I recognize that there's still some potential correctness issues for Servo using the resolved URI in various places where the original URI may be the right thing, but I've got too much on my plate to look into that for now. MozReview-Commit-ID: BeDu93TQ4Ow
* Move all PropertyDeclarationBlock from RwLock<_> to Locked<_>Simon Sapin2017-03-191-0/+1
|
* Replace non_ts_pseudo_class_list include hack with higher order macroManish Goregaokar2017-03-151-0/+3
| | | | MozReview-Commit-ID: IBGhult0Ujv
* Simplify defining arc ffi typesXidorn Quan2017-02-231-0/+1
|
* Bug 1331213: Bootstrap a Gecko-side Device, and track it's dirtiness ↵Emilio Cobos Álvarez2017-01-171-5/+0
| | | | | | | | | | | | | | | | manually in the per-doc data. r=heycam The setup is quite different to Servo-land, so add a comment about the different setup. Also, check viewport rules when flushing stylesheets. I believe that the previous behavior is plain wrong, though I haven't taken the time to come up with a test case. In any case, it doesn't hurt any of both back-ends. MozReview-Commit-ID: 46gtTkesOsr Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* style: Isolate the soon-to-be style-backend-specific from the media_query ↵Emilio Cobos Álvarez2017-01-071-4/+9
| | | | module.
* style: Describe the gecko module.Emilio Cobos Álvarez2017-01-021-0/+1
|
* Introduce and use Scoped TLS.Bobby Holley2016-12-211-1/+0
| | | | | | | | | | | | | | | | It turns out that it's problematic to embed ThreadLocalStyleContext within LayoutContext, because parameterizing the former on TElement (which we do in the next patch) infects all the traversal stuff with the trait parameters, which we don't really want. In general, it probably makes sense to use separate scoped TLS types for the separate DOM and Flow tree passes, so we can add a different ScopedTLS type for the Flow pass if we ever need it. We also reorder the |scope| and |shared| parameters in parallel.rs, because it aligns more with the order in style/parallel.rs. I did this when I was adding a TLS parameter to all these functions, which I realized we don't need for now.
* Rename selector_impl.rs to selector_parser.rsSimon Sapin2016-11-201-1/+1
| | | | This makes it consistent with an upcoming update of the selectors crate.
* Stop using associated types for the concrete TRestyleDamage implementation.Bobby Holley2016-11-071-0/+1
| | | | MozReview-Commit-ID: LfaZFCVlIb1
* Move most of geckolib into style::geckoManish Goregaokar2016-09-261-0/+15