Delan Azabani
8882507ad0
Rework “visible” to “throttled” in constellation + script + compositor ( #31816 )
2024-03-22 06:06:28 +00:00
Aarya Khandelwal
9b26dca141
Fixed the .clone() warnings. ( #31819 )
2024-03-22 05:41:17 +00:00
Oluwatobi Sofela
3e63f8d6ee
clippy: Fix needless borrow warnings ( #31813 )
2024-03-21 17:48:54 +00:00
Oluwatobi Sofela
694e86ecff
clippy: Fix dereferencing a tuple pattern warnings ( #31811 )
2024-03-21 17:04:18 +00:00
Martin Robinson
755701f4f6
crown: Do not warn about crown for rustdoc or clippy ( #31805 )
...
Fixes #31804 .
2024-03-21 15:33:06 +00:00
eri
8c7e9a15e1
Remove repeated imports from generated code ( #31711 )
...
* feat: try to deduplicate imports in codegen
* feat: another attempt
* feat: start testing imports
* feat: clean all global imports
* feat: remove shared imports from CGDescriptor
* feat: remove redundant imports from CGDescriptor
* fix: formatting
* fix: remove libc (base level import)
* feat: roll back named path changes
* feat: last changes and tidy
* experiment: move imports into a separate file
* fix: extra parenthesis
* fix: remove repeated allow statement
2024-03-21 13:38:16 +00:00
eri
da696b7e57
clippy: fix result_unit_err
warnings ( #31791 )
...
* clippy: fix `result_unit_err` warnings
* feat: fix result warnings in script
* doc: document `generate_key` return type
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* feat: add back result to RangeRequestBounds::get_final
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-03-21 12:51:45 +00:00
Rosemary Ajayi
ce0d456469
clipping: Fix some warnings in components/script/dom
( #31799 )
...
* fix clippy websocket errors
* fix clippy window errors
* fix clippy window errors
* fix clippy window errors
2024-03-21 11:46:18 +00:00
Aarya Khandelwal
7cdff9dd06
Clippy: Fixed warnings in htmlimageelement.rs ( #31800 )
...
* Fixed warnings in htmlimageelement.rs
* making changes for test-tidy to run without errors.
2024-03-21 08:00:24 +00:00
Aarya Khandelwal
da3288dd00
Clippy: Fixed clippy warnings in components/script/dom ( #31801 )
...
* fixed clippy warnings in htmlformelement.rs
* Fixed clippy warnings
* Fixed warnings related to matches!
* made changes to compile "test-tidy" successfully
2024-03-21 07:14:12 +00:00
Oluwatobi Sofela
2789e98876
clippy: Fix redundant field names warnings ( #31793 )
2024-03-20 23:05:29 +00:00
Rosemary Ajayi
058319aa0b
clippy: Fix some clippy problems in components/script
( #31778 )
...
* fix clippy problems in stylesheet
* fix clippy problems in task_manager
* fix clippy problems in task_queue
* fix clippy problems in task_queue
* fix clippy problems in file_reading
* fix clippy problems in dom_manipulation
* fix clippy problems in gamepad
* fix clippy problems in networking
* fix clippy problems in performance
* fix clippy problems in port_message
* fix clippy problems in port_message
* fix clippy problems in timer
* fix clippy problems in stylesheet
* fix clippy problems
* fix clippy problems
* fix clippy problems
2024-03-20 18:41:07 +00:00
Oluwatobi Sofela
15bf32a4e6
clippy: Fix unneeded return statement warnings ( #31776 )
2024-03-20 14:11:40 +00:00
Oluwatobi Sofela
02a0cdd6fa
clippy: Fix dereferenced warnings ( #31770 )
2024-03-20 08:07:22 +00:00
Tumuhairwe
e3809dfd06
Fix clippy warnings in components/script/textinput.rs ( #31769 )
2024-03-19 23:13:28 +00:00
Rosemary Ajayi
865f6e621f
clippy: Fix clippy Problems in components/scripts ( #31759 )
...
* revert cargo
* revert cargo
* fic clippy problems
2024-03-19 22:22:37 +00:00
Richard Dushime
01ca220f83
clippy: Fix many warnings in components/script
( #31717 )
...
* Fix Several clippy warnings
* Fix Build errors
* Fix Unused import
* Fix requested changes
* Fix rustfmt
* Minor fixes
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-03-19 16:05:56 +00:00
Oluwatobi Sofela
676f655647
clippy: Fix dereferenced warning ( #31758 )
2024-03-19 15:04:43 +00:00
Oluwatobi Sofela
36d9ab8b28
rustdoc: Convert url text to anchor link ( #31755 )
2024-03-19 11:48:09 +00:00
Rosemary Ajayi
06a021db55
clippy: Fix some warnings in components/script
( #31735 )
...
* fix clippy problems
* fix clippy error
* fix clippy error
* fix clippy error
* fix clippy error
* fix clippy error
* fix clippy errors
2024-03-19 08:01:23 +00:00
Samson
c25069161d
Add pseudo async Create*PipelineAsync methods ( #31695 )
...
* Create fake CreatePipelineAsync
* Update WebGPU CTS
* Update expectations and disable some webgpu tests
2024-03-19 05:39:42 +00:00
Oriol Brufau
c07484fcb6
Update Stylo to 2023-09-01 ( #31609 )
...
* Update Stylo to 2023-09-01
* Fixup for https://phabricator.services.mozilla.com/D184929
* Fixup for https://phabricator.services.mozilla.com/D184526
* Fixup for https://phabricator.services.mozilla.com/D184525
* Fixup for https://phabricator.services.mozilla.com/D185154
* Fixup for https://phabricator.services.mozilla.com/D184685
* Fixup for https://phabricator.services.mozilla.com/D185916
* Fixup for https://phabricator.services.mozilla.com/D185492
* Fixup for https://phabricator.services.mozilla.com/D186626
* Update test expectations
2024-03-18 13:52:40 +00:00
Rosemary Ajayi
3ac0ab2e4e
clippy: Fix some warnings in the script
crate ( #31719 )
...
* Fix InlineFormatting error
* BoxFrament
* fix clippy error
* clippy:fix clipy errors
* fix clippy errors
* fix clippy errors
* fix clippy errors
* Remove changes to `layout_2020`
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-03-18 10:05:18 +00:00
RustAndMetal
f6a975fc58
clippy: Fix several warnings ( #31710 )
...
Signed-off-by: RustAndMetal <111676747+RustAndMetal@users.noreply.github.com>
2024-03-18 08:33:43 +00:00
eri
99ddab43e8
clippy: Fix warnings in generated code ( #31721 )
...
* clippy: remove extra static lifetimes in generated code
* clippy: fix return and cast in generated code
* clippy: fix more warnings in codegen
* clippy: fix all errors from generated files
2024-03-17 21:32:47 +00:00
Smitty
d2dcb20bea
Implement console.count/countReset ( #31635 )
...
* Implement console.count/countReset
* Address review comment
Signed-off-by: syvb <me@iter.ca>
---------
Signed-off-by: syvb <me@iter.ca>
2024-03-17 09:50:40 +00:00
Richard Dushime
8a6481c341
clippy: Fix warnings in components/script
( #31700 )
...
* Fix warnings: immediate dereferencing of references and unneeded statement
* Fix warnings in Components/script
2024-03-15 17:27:50 +00:00
Oriol Brufau
bc4f1c217d
Implement HTMLStyleElement.disabled attribute ( #31682 )
...
https://html.spec.whatwg.org/multipage/#dom-style-disabled
2024-03-14 23:48:29 +00:00
Martin Robinson
ad37a54f59
dependencies: Upgrade to WebRender 0.64 ( #31486 )
...
This brings the version of WebRender used in Servo up-to-date with Gecko
upstream. The big change here is that HiDPI is no longer handled via
WebRender. Instead this happens via a scale applied to the root layer in
the compositor. In addition to this change, various changes are made to
Servo to adapt to the new WebRender API.
Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2024-03-14 17:40:54 +00:00
Ngo Iok Ui (Wu Yu Wei)
b1debf2068
fix: missing thread name when spawning ( #31656 )
...
* Add missing thread name when spawning
* Update namings
2024-03-14 10:40:58 +00:00
Oluwatobi Sofela
8cbad332c3
rusdoc: Fix idl
warning in components/script/dom/bindings ( #31643 )
...
* rusdoc: Add valid domstring link
* rustdoc: Replace unused idl link ref
2024-03-13 17:59:27 +00:00
Azhar Ismagulova
5ea0531775
rustdoc: Fix warnings in components/script/dom
( #31632 )
...
* fix: fixed warnings in components/script/dom
* fix: resolved comment by setting explicit link to HTMLConstructor
* fix: changed the format of WHATWG link
* Fix line breaking
* Remove trailing white space
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-03-13 09:34:42 +00:00
eri
03d64d0675
clippy: Fix assorted warnings in components/
( #31628 )
...
* clippy: fix assorted warnings in `components/`
* fix: new and default
* fix: review comments
2024-03-13 08:31:58 +00:00
eri
21939c2ba8
clippy: Fix warnings in components/shared
( #31627 )
...
* clippy: fix warnings in `components/shared`
* fix: formatting derive
* fix: rename new to default
2024-03-12 17:22:05 +00:00
Daniel Adams
48fa77df67
Gamepad: Align closer to spec and implement missing slots ( #31385 )
...
* Implement missing gamepad slots, align to spec more
- Fixes TODO's from initial gamepad implementation
- Adds some missing spec steps
* Only handle gamepad events when pref is enabled
* Return empty list in getGamepads if document not active
* ./mach fmt
* Update getGamepads to return an array instead of GamepadList
* Add spec link for [[exposed]] slot
* Remove failing test expectations for not-fully-active
* A few fixes
- Change should_notify to has_gesture
- Add spec links and TODO to navigator
- Remove unneeded clone from GamepadList::list
- Move gamepadconnected event firing into has_gesture block
* Use queue_with_canceller for tasks and add expects
* Explicitly check for gamepad user gesture
* Move user gesture check into separate function
* Change contains_user_gesture to be a gamepad function
* mach fmt
* Change axis/button threshold constants to be private to module
2024-03-12 12:32:30 +00:00
Mucha Naibei
d1fd8d55ab
Fix rustdoc errors in components/script/dom
( #31617 )
...
* Fix rustdoc errors in components/script/dom
* Revert if to iff in audiobuffer.rs
2024-03-11 22:04:05 +00:00
Samson
099bb0fa19
Use get_desired_proto in htmlconstructor ( #31600 )
...
* Use get_desired_proto in htmlconstructor
* Update expectations
2024-03-10 14:44:25 +00:00
Azhar Ismagulova
48f5ee828c
fix: resolved warning related to deprecated method chrono::NaiveDateTime::from_timestamp_opt ( #31593 )
2024-03-08 23:35:46 +00:00
Azhar Ismagulova
0768bba5b9
fix: resolved warnings related to deprecated method chrono::NaiveDateTime::timestamp_millis ( #31584 )
2024-03-08 16:47:09 +00:00
eri
3a5ca785d3
clippy: fix warnings in various modules in components ( #31568 )
...
* clippy: fix warnings in various modules in components
* fix: unit tests
* fix: build on android
* fix: all samplers use new_boxed
2024-03-08 14:28:04 +00:00
Josh Matthews
19f1f2a8f4
Extract generated finalizers into generic helper functions. ( #31569 )
2024-03-08 14:15:26 +00:00
Munish Mummadi
52c4f57085
Update phf_codegen and phf_shared to 0.11 ( #31537 )
...
* Update phf_codegen and phf_shared to 0.11
* Updated the Cargo.lock With ./mach build
2024-03-08 07:25:12 +00:00
sandeep
64d013d473
Fix clippy warnings in components/rand
( #31549 )
...
* 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>
2024-03-07 23:16:42 +00:00
Oriol Brufau
ea38d8ad6f
Add basic support for enumerating computed styles ( #31499 )
...
* 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
2024-03-06 21:43:06 +00:00
eri
a8170966ec
Move convert_* functions into gpuconvert.rs ( #31521 )
...
* feat: unify convert_* functions across gpu*.rs files #31104
* chore: reorder and format
2024-03-06 16:48:34 +00:00
Oriol Brufau
3e6b92df13
Fix "unused import" warning ( #31485 )
2024-03-04 07:33:37 +00:00
Oriol Brufau
06aeeeb1f3
Add CSSOM support for CSS layers ( #31481 )
...
Instead of just crashing.
2024-03-03 12:47:39 +00:00
Samson
b785aea2cf
Update gstreamer crates to 0.22 ( #31465 )
2024-03-01 11:45:43 +00:00
Smitty
0beec63c86
script: Implement <meta http-equiv="refresh">
( #31468 )
...
* script: Implement <meta http-equiv="refresh">
* Address review comments
2024-03-01 07:42:18 +00:00
Oriol Brufau
31cfaf290d
Update Stylo to 2023-07-23 ( #31437 )
...
* 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
2024-02-29 10:23:53 +00:00