aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/generated_content.rs
Commit message (Collapse)AuthorAgeFilesLines
* Elide lifetimes where possible after rustup (#34824)Martin Robinson2025-01-031-2/+2
| | | | | | | | | The new version of rust allows us to elide some lifetimes and clippy is now complaining about this. This change elides them where possible and removes the clippy exceptions. Fixes #34804. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Replace lazy_static crate with `std::sync::LazyLock` in layout and config ↵Hayashi Mikihiro2024-08-151-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#33065) * replace in layout_thread_2020 Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> * replace in layout_thread Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> * replace in layout Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> * replace in config Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> * replace in config_plugins The macro of config_plugins require Send trait bounds Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> --------- Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* fonts: Make `FontContext` thread-safe and share it per-Layout (#32205)Martin Robinson2024-05-021-4/+2
| | | | | | | | | | | | This allows sharing font templates, fonts, and platform fonts across layout threads. It's the first step toward storing web fonts in the layout versus the shared `FontCacheThread`. Now fonts and font groups have some locking (especially on FreeType), which will probably affect performance. On the other hand, we measured memory usage and this saves roughly 40 megabytes of memory when loading servo.org based on data from the memory profiler. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* clippy: Fix warnings in `components/layout` (#31612)eri2024-03-111-1/+1
| | | | | * clippy: fix warnings in components/layout * fix: formatting
* Lint layout_2013 with clippy (#31221)Oriol Brufau2024-01-301-18/+15
| | | | | | | | | * Lint layout_2013 with clippy CARGO_BUILD_RUSTC=rustc cargo clippy --fix -p layout_2013 --broken-code * ./mach fmt * Cosmetic adjustments
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-9/+11
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-0/+1
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Make Layout 2013 style a superset of Layout 2020 styleMartin Robinson2023-06-281-5/+4
| | | | | This is the first step toward removing the compile-time difference in style between Layout 2020 and Layout 2013.
* Further changes required by ServoOriol Brufau2023-05-161-2/+2
|
* Fix Servo build and unify display representation.Emilio Cobos Álvarez2019-08-151-3/+2
|
* Update euclid.Emilio Cobos Álvarez2019-07-231-5/+25
| | | | | | | | There are a few canvas2d-related dependencies that haven't updated, but they only use euclid internally so that's not blocking landing the rest of the changes. Given the size of this patch, I think it's useful to get this landed as-is.
* fmtSimon Sapin2019-07-221-66/+30
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Fix Servo build.Emilio Cobos Álvarez2018-11-081-4/+3
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-2/+2
|
* Reorder importsPyfisch2018-11-061-2/+4
|
* Sort `use` statementsSimon Sapin2018-11-061-2/+2
|
* `cargo fix --edition`Simon Sapin2018-11-061-8/+8
|
* Rustfmt layout cratePyfisch2018-09-011-167/+212
|
* Fix Servo build.Emilio Cobos Álvarez2018-05-191-1/+4
|
* style: Fix servo build.Emilio Cobos Álvarez2018-05-051-8/+8
|
* Move DL items from gfx to layoutPyfisch2018-04-221-1/+1
| | | | | | | | | Implement corner clipping. Remove PixelFormat from WebrenderImageInfo. Use WebRender text shadow. Remove MallocSizeOf and Deserialize for DL items. Closes #19649, #19680, #19802
* Make ContentItem use a CustomIdent for counter namesAnthony Ramine2018-03-021-6/+6
| | | | See https://github.com/w3c/csswg-drafts/pull/2377
* style: Move content property out of mako.Igor Gutorov2018-02-071-4/+4
|
* Simplify counter CSS propertiesAnthony Ramine2018-02-041-2/+2
|
* moved css longhand counter-reset out of makoJonas Reinwald2018-02-011-2/+2
|
* layout: Remove type parameter from PseudoElementType.Emilio Cobos Álvarez2018-01-141-2/+2
| | | | Everyone uses () now.
* Turn flow::base and friends into methodsMatt Brubeck2017-12-141-3/+3
|
* style: Use more Box<[]> and Box<str> for quotes.Emilio Cobos Álvarez2017-12-141-2/+2
|
* style: Make all keywords CamelCase for consistency.Emilio Cobos Álvarez2017-12-061-49/+51
| | | | This prevents confusion and paves the ground for derive(Parse) of them.
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-4/+4
|
* Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-4/+4
| | | | | | failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE Backs out https://github.com/servo/servo/pull/18809
* Update bitflags to 1.0 in every servo crateBastien Orivel2017-10-191-4/+4
| | | | | It still needs dependencies update to remove all the other bitflags versions.
* Remove usage of unstable box syntax, except in the script crateSimon Sapin2017-10-121-2/+3
| | | | | … because there’s a lot of it, and script still uses any other unstable features anyway.
* Make tidy aware of Rust multiline stringsMichael Droettboom2017-09-211-2/+2
| | | | | | As a result of tighter and more correct handling of character literals, this now catches a few kinds of syntax involving lifetimes that were previously missed, so those have been updated.
* Code organization: Move all generic traversal code to layout::traversalMatt Brubeck2017-08-081-1/+1
|
* Add a generic inorder traversal methodMatt Brubeck2017-08-071-1/+1
|
* Replace all uses of the style::stylearc alias with servo_arc.Michael Partheil2017-07-191-2/+2
| | | | | | The alias is left there temporarilly and will be removed completely in a later commit where also components/style/gecko/generated/structs_{debug|release}.rs are re-generated (they still use the old alias).
* stylo: Use ComputedValuesInner instead of ComputedValues when we don't need itManish Goregaokar2017-07-171-4/+4
|
* Fix up script and layout.Bobby Holley2017-05-021-3/+2
|
* Use CustomIdent in counter-incrementSimon Sapin2017-04-261-2/+4
|
* Replace RwLock<StyleRule> with Locked<StyleRule>Simon Sapin2017-03-191-1/+1
|
* Remove cached thread local context from LayoutContextPu Xingyu2017-02-081-5/+6
| | | | | Remove cached thread local context from LayoutContext, use LayoutContext for assign_inline_sizes(), and simplify the parallel flow traversal code.
* Make Restyle tracking more granular.Bobby Holley2016-12-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | The primary idea of this patch is to ditch the rigid enum of Previous/Current styles, and replace it with a series of indicators for the various types of work that needs to be performed (expanding snapshots, rematching, recascading, and damage processing). This loses us a little bit of sanity checking (since the up-to-date-ness of our style is no longer baked into the type system), but gives us a lot more flexibility that we'll need going forward (especially when we separate matching from cascading). We also eliminate get_styling_mode in favor of a method on the traversal. This patch does a few other things as ridealongs: * Temporarily eliminates the handling for transfering ownership of styles to the frame. We'll need this again at some point, but for now it's causing too much complexity for a half-implemented feature. * Ditches TRestyleDamage, which is no longer necessary post-crate-merge, and is a constant source of compilation failures from either needing to be imported or being unnecessarily imported (which varies between gecko and servo). * Expands Snapshots for the traversal root, which was missing before. * Fixes up the skip_root stuff to avoid visiting the skipped root. * Unifies parallel traversal and avoids spawning for a single work item. * Adds an explicit pre_traverse step do any pre-processing and determine whether we need to traverse at all. MozReview-Commit-ID: IKhLAkAigXE
* 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-1/+2
| | | | MozReview-Commit-ID: LfaZFCVlIb1
* Reorder `use` statementsUK9922016-09-091-2/+2
|
* Remove the ComputedValue traits and style_struct_traitsSimon Sapin2016-07-201-1/+1
|
* Move LayoutNode and related traits to script_layout_interface.Ms2ger2016-06-201-1/+1
|
* Introduce a script_layout_interface crate and move RestyleDamage to it.Ms2ger2016-06-201-1/+1
|