aboutsummaryrefslogtreecommitdiffstats
path: root/components
Commit message (Collapse)AuthorAgeFilesLines
* compositor: Remove the `is_running_problem_test` setting (#31589)Martin Robinson2024-03-094-64/+11
| | | | | These tests don't seem to time out any longer and this mechanism is probably better served by some sort of adjustment to `RUST_LOG` in the WPT harness.
* fix: resolved warning related to deprecated method ↵Azhar Ismagulova2024-03-081-2/+5
| | | | chrono::NaiveDateTime::from_timestamp_opt (#31593)
* Fixed unresolved links by appropriately linking to parent (#31588)Wepngong Maureen2024-03-081-2/+2
| | | Signed-off-by: Wepngong Maureen <maureenwepngong@gmail.com>
* Fix rustdoc warnings in `components/layout 2020/positioned.rs` (#31592)Wepngong Maureen2024-03-081-3/+3
| | | | | | | | | | | | | | | | | * fixed typo in PositioningContext Signed-off-by: Wepngong Maureen <maureenwepngong@gmail.com> * fixed unresolved link to unresolved link to adjust_static_position_of_hoisted_fragments function Signed-off-by: Wepngong Maureen <maureenwepngong@gmail.com> * fixed unresolved link to unresolved link to len() function of PositioningContext Signed-off-by: Wepngong Maureen <maureenwepngong@gmail.com> --------- Signed-off-by: Wepngong Maureen <maureenwepngong@gmail.com>
* fix: resolved warnings related to deprecated method ↵Azhar Ismagulova2024-03-081-4/+4
| | | | chrono::NaiveDateTime::timestamp_millis (#31584)
* Fix rustdoc warnings in `components/layout_2020` (#31587)sandeep2024-03-082-3/+3
| | | | | | | | | | | | | | * fix rustdoc warnings in components/layout_2020 Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> * made suggested changes Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> --------- Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> Co-authored-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local>
* Make image decoding thread pool the size of the system's CPUs (#31585)eri2024-03-081-2/+9
|
* clippy: fix warnings in components/shared (#31565)eri2024-03-0814-138/+101
| | | | | | | * clippy: fix some warnings in components/shared * fix: unit tests * fix: review comments
* clippy: fix warnings in various modules in components (#31568)eri2024-03-0824-118/+107
| | | | | | | | | * clippy: fix warnings in various modules in components * fix: unit tests * fix: build on android * fix: all samplers use new_boxed
* Extract generated finalizers into generic helper functions. (#31569)Josh Matthews2024-03-083-31/+60
|
* layout: Add documentation about table layout (#31535)Martin Robinson2024-03-082-6/+61
| | | Co-authored-by: Oriol Brufau <obrufau@igalia.com>
* Fix rustdoc errors in `components/shared` (#31582)Aarya Khandelwal2024-03-083-3/+3
| | | | | | | * Fixed error in documentation in components>shared>embedder>lib.rs * fixed documentation warning in compoenents>shared>net>request.rs * Fixed the documentation (URL issue) in components>shared>script>lib.rs
* Obey table cell's box-sizing (#31536)Oriol Brufau2024-03-081-45/+39
| | | Instead of assuming `box-sizing: content-box`.
* layout: Fix the pseudo for anonymous tables (#31578)Martin Robinson2024-03-081-3/+1
| | | | | | | Anonymous tables should not use legacy pseudos, as the legacy layout engine had them inherit lots of random properites that lead to bad layout in the new layout engine. Co-authored-by: Oriol Brufau <obrufau@igalia.com>
* Fix clippy warnings in components/shared/net/request.rs (#31551)zawz2024-03-081-35/+32
| | | | | | | | | | | * Fix clippy warnings in components/shared/net/request.rs Signed-off-by: mateoferon <mateo.feron@elipce.com> * fixup! Fix clippy warnings in components/shared/net/request.rs --------- Signed-off-by: mateoferon <mateo.feron@elipce.com>
* Update phf_codegen and phf_shared to 0.11 (#31537)Munish Mummadi2024-03-081-2/+2
| | | | | * Update phf_codegen and phf_shared to 0.11 * Updated the Cargo.lock With ./mach build
* clippy: fix some warnings in components/canvas (#31563)eri2024-03-087-98/+90
|
* clippy: fix warnings in components/config* (#31562)eri2024-03-085-21/+20
|
* clippy: fix warnings in components/gfx (#31560)eri2024-03-0817-237/+198
| | | | | | | * clippy: fix warnings in components/gfx * refactor: switched the order of impl so that its intent is clearer * fix: add font context default in other platforms
* clippy: fix warnings in components/bluetooth (#31566)eri2024-03-074-92/+81
|
* Fix clippy warnings in `components/rand` (#31549)sandeep2024-03-074-6/+6
| | | | | | | | | | | | | | | | | | | | | | * resolved clippy warnings in components/rand Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> * replaced new() with default() Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> * replaced ServoRng::new() with ServoRng::default() Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> * moved the contents of the new() method into the default() method Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> --------- Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> Co-authored-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local>
* compositor: Limit animation tick interval when in WPT mode (#31561)Martin Robinson2024-03-071-5/+21
| | | | | | | | | | | | When exiting after load or dumping a screenshot, limit the speed that the compositor sends tick events to the constellation (and on to the script thread). Previously, these tick messages were sent as fast as the winit event loop (that's really fast!), until the document was ready to for its screenshot. rAf is meant to run at more or less the same frequency as the refresh rate of the screen. On my system, the massive amount of ticks was overwhelming the router thread, preventing fonts from loading properly. This change is an attempt to make tests with requestAnimationFrame less flaky.
* Add multiview feature flag in libservo and servoshell (#31541)Delan Azabani2024-03-071-0/+1
|
* Use thread pool to decode image (#31517)eri2024-03-071-2/+8
| | | | | | | | | | | * feat: do not spawn dedicated thread to decode image * fix: change comment to docstring Co-authored-by: Taym Haddadi <haddadi.taym@gmail.com> --------- Co-authored-by: Taym Haddadi <haddadi.taym@gmail.com>
* compositor: Improve the way we wait for frames (#31523)Martin Robinson2024-03-073-98/+74
| | | | | | | | | | | | | | | | | | | * compositor: Improve the way we wait for frames In the newest version of WebRender it will be harder to make the distinction between frame queued for scrolling and other kinds of pending frames. This change makes it so that we queue frames for both kinds of changes the same way and keeps a counting of pending frames. This is conceptually a lot simpler. In addition, do queue a composite even when recomposite isn't necessary for a WebRender frame when there are active requestAnimationFrame callbacks. Doing a composite is what triggers the callbacks to actually run in the script thread! I believe this was a bug, but the WebRender upgrade made it much more obvious. These changes are in preparation for the WebRender upgrade. * Remove spurious println
* layout: Add support for box-shadow to Layout 2020 (#31453)Martin Robinson2024-03-072-0/+41
|
* Enable CSS Tables by default (#31470)Oriol Brufau2024-03-072-13/+4
| | | And remove the pref `layout.tables.enabled`.
* Add basic support for enumerating computed styles (#31499)Oriol Brufau2024-03-061-0/+52
| | | | | | | | | | | * Add basic support for enumerating computed styles The old code was so broken, it was enumerating the style attribute instead of the computed styles. So this patch implements a basic enumeration, but not including custom properties whose computed value is not the guaranteed-invalid value. * Feedback
* Move convert_* functions into gpuconvert.rs (#31521)eri2024-03-067-339/+365
| | | | | * feat: unify convert_* functions across gpu*.rs files #31104 * chore: reorder and format
* Fix several clippy warnings in components/bluetooth (#31512)Mucha Naibei2024-03-061-48/+41
| | | | | * Fix several clippy warnings in components/bluetooth/lib * Fix requested change while maintaining clippy rules
* layout: Add start of documentation for inline layout (#31519)Martin Robinson2024-03-062-0/+67
| | | Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
* Fix the measures of a table cell (#31513)Oriol Brufau2024-03-061-22/+24
| | | The spec doesn't make much sense, this seems to match Gecko and Blink.
* Fix several clippy warnings in components/hyper_serde (#31508)Mucha Naibei2024-03-061-4/+4
|
* Fix intrinsic sizing of tables (#31506)Oriol Brufau2024-03-051-131/+75
| | | | | * Fix intrinsic sizing of tables * Feedback
* clippy: Fix several warnings in components/devtools (#31501)eri2024-03-0518-86/+85
|
* layout: Properly propagate text decoration values in tables (#31487)Martin Robinson2024-03-041-15/+28
| | | | Instead of just taking the value from the ancestor outside the table, combine the values when constructing the table.
* Fix column and row measures (#31480)Oriol Brufau2024-03-041-15/+21
| | | | | | | | | | | | | | The min-content size of a table track was >= the max-content size. So - For the min-content size of a column, now we just use min-inline-size, ignoring inline-size and max-inline-size. This matches Gecko, Blink and WebKit. - For the max-content size of a column, we keep matching Gecko. Note that Blink and WebKit are different, they ignore max-inline-size. - For both the min-content and max-content sizes of a row, now we just use block-size. This matches Gecko, Blink and WebKit. Also, if the computed value contains percentages, now we treat it as the initial value, instead of resolving percentages against zero. This matches Gecko and Blink, but not WebKit for rows.
* Treat indefinite percentages as auto offsets in relative positioning (#31484)Oriol Brufau2024-03-041-6/+11
| | | | | | | | | * Treat indefinite percentages as auto offsets in relative positioning Instead of just resolving the percentages against zero. The spec is not clear (https://github.com/w3c/csswg-drafts/issues/9353), but this way we match Gecko, Blink and WebKit. * Update test expectations
* Fix "unused import" warning (#31485)Oriol Brufau2024-03-041-1/+0
|
* Add CSSOM support for CSS layers (#31481)Oriol Brufau2024-03-038-3/+206
| | | Instead of just crashing.
* Fix size of tables in flow layout (#31455)Oriol Brufau2024-03-027-146/+281
| | | | | | | | | | | | | | | | | | | | | | * Fix size of tables in flow layout The contents of a table can make it bigger than what we would expect from its 'width', 'min-width', 'height' and ' min-height' properties. Also, 'width: auto' doesn't stretch it to fill the containing block. We had to refactor the resolution of margins to happen after layout, otherwise 'auto' margins wouldn't align correctly. Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Feedback * Consistently use `containing_block_for_table` in table layout * Update test result --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Update gstreamer crates to 0.22 (#31465)Samson2024-03-014-6/+6
|
* script: Implement `<meta http-equiv="refresh">` (#31468)Smitty2024-03-015-9/+185
| | | | | * script: Implement <meta http-equiv="refresh"> * Address review comments
* Fix percentages in CSS tables (#31454)Oriol Brufau2024-02-291-3/+3
| | | | | 100% is stored as Percent(1.), not as percent(100.) Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* layout: Add initial support for row height distribution (#31421)Martin Robinson2024-02-292-136/+539
| | | | | | | | | | | | This change adds a version of row height distribution that follows the distribtuion algorithm used for tables in Blink's LayoutNG. This is just an intermediate step toward implementing a distribution algorithm for both rows and columns more similar to Layout NG. The CSS Table 3 specification is often wrong with regard to web compatability, which is why we have abandoned it in favor of the Layout NG algorithm for row height distribution. this work. Co-authored-by: Oriol Brufau <obrufau@igalia.com>
* Update Stylo to 2023-07-23 (#31437)Oriol Brufau2024-02-299-15/+57
| | | | | | | | | | | | | | | | | | | * Update Stylo to 2023-07-23 * to_shmem should be local when working with Stylo * Fixup for https://phabricator.services.mozilla.com/D180769 * Fixup for https://phabricator.services.mozilla.com/D181125 * Fixup for https://phabricator.services.mozilla.com/D181162 * Fixup for https://phabricator.services.mozilla.com/D181798 * Fixup for https://phabricator.services.mozilla.com/D182514 * Fixup for https://phabricator.services.mozilla.com/D182539 * Update test expectations
* Add `use-system-allocator` to not use jemalloc (#31443)Samson2024-02-292-3/+14
| | | | | * Add `use-system-allocator` feature * Allow `servo_allocator/use-system-allocator` on servoshell
* fix invalid video poster image loading from panicking (#31447)Sebastian C2024-02-281-2/+2
| | | | | | | | | This fixed #31438. When an image is loaded from cache, it will load a placeholder if the url is not a valid image url. This may be unexpected when using the image cache and specifying UsePlaceholder::No but that has no effect on loading an image not in the cache. Signed-off-by: Sebastian C <sebsebmc@gmail.com>
* webaudio: Throw when setting invalid automationRate on AudioBufferSourceNode ↵Shamir Khodzha2024-02-2810-10/+56
| | | | (#26469)
* layout: Add an implementation of `process_resolved_font_style_query` for ↵Smitty2024-02-282-11/+120
| | | | | | | | | | | | | | | Layout 2020 (#31436) * layout: support setting canvas font Signed-off-by: syvb <me@iter.ca> * Update 2d.reset.state.font.html test Signed-off-by: syvb <me@iter.ca> --------- Signed-off-by: syvb <me@iter.ca>