aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename messages forwarded from the constellation to the compositor (#30496)Martin Robinson2023-10-051-9/+17
| | | | | | The constellation forwards messages from other tasks to the compositor. Mainly, these are passed to WebRender. This change updates the names of these messages so it is clearer where they are coming from and where they are going.
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-26/+24
| | | | | * strict imports formatting * Reformat all imports
* Upgrade WebRender to e491e1ae637b2eed1e7195855d88357e5eb3ddf9 (#30323)Martin Robinson2023-09-101-19/+5
| | | | | | | | | | | | | | | | | | * Upgrade vendored version of WebRender * Patch WebRender: upgrade version of gleam * Restore hit testing implementation * Fix WebRender warnings * Adapt Servo to new WebRender * Update results * Add a workaround for #30313 This slightly expands text boundaries in order to take into account the fact that layout isn't measuring glyph boundaries.
* remove `extern crate` (#30311)Samson2023-09-081-9/+3
| | | | | | | | | | | * 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>
* constellation: crash to a new “sad tab” error page (#30290)Delan Azabani2023-09-061-0/+4
| | | | | | | | | | | | | | | | | | | | | * constellation: crash to a new “sad tab” page * check in resources/crash.html * use a separate enum variant instead of keying on reason * fmt + tidy * rename Resource::Crash to Resource::CrashHTML * clean up crash page and add details (reason + backtrace) * avoid repeating crash errors in script::script_thread warn log * make new LoadData init more idiomatic * clarify comments and new fields * fix doc comment style
* Remove `EventLoopWaker` from Constellation (#30101)Atbrakhi2023-08-151-3/+1
| | | | | | | | | | | | | * remove event_loop_waker that is always None * remove None event_loop_waker form InitialScriptState * fix formatting * remove None event_loop_waker from ScriptThread * remove None EventLoopWaker from Window * remove None and use of wake_after_send in webgl code
* Try to `use` WebRender types moreMartin Robinson2023-07-101-14/+13
| | | | | The newer versions of WebRender move types around between `webrender` and `webrender_api` and this will reduce the churn during the upgrade.
* Clean up and document the `send_display_list` interfaceMartin Robinson2023-05-241-23/+19
| | | | | | This moves more members to the CompositorDisplayListInfo struct, which now holds all miscellaneous, non-WebRender data when sending display lists. It also documents what each things sent with a display list does.
* Add a compositor-side scroll treeMartin Robinson2023-05-191-0/+4
| | | | | | This will allow the compositor to properly chain scrolling requests up when a node has reached the extent of the scroll area. This fixes scrolling on servo.org.
* Clean up arguments passed to ScriptThreadMartin Robinson2023-05-011-9/+0
|
* Scroll from script should trigger a reflowMartin Robinson2023-04-251-1/+1
| | | | | | | | | Scrolling from script should flow layout and send a display list to WebRender. This allows all of the scroll nodes to exist in WebRender before asking it to move the node. See https://gist.github.com/paulirish/5d52fb081b3570c81e3a. Fixes #29659.
* Add support for <iframe> elements for Layout 2020Martin Robinson2023-04-041-3/+1
| | | | | | This change adds support for the <iframe> element to Layout 2020. In addition, certain aspects of the implementation are made the same between both layout systems.
* Move hit testing information out of WebRenderMartin Robinson2023-03-151-4/+28
| | | | | | | | | Store hit testing information in a data structure that sits alongside the display list in the compositor. This will allow the compositor to store more information per-node. The data structure also takes care of de-duplicating information between successive display list entries. In the future, the data structure can be even more aggressive in producing smaller side hit testing lists, if necessary.
* Use IpcBytesReceiver to send Display list dataWu Yu Wei2022-03-101-2/+7
|
* Add SerializedImageData to use IpcBytesReceiverYu-Wei Wu2022-03-101-3/+75
|
* Upgrade HyperNaveen Gattu2022-01-161-1/+1
|
* Add creation url and Secure ContextsJonathan Kingston2020-11-251-0/+12
|
* Fix ordering of mousemove eventUtsav Oza2020-07-301-1/+1
|
* Unfocus input when virtual keyboard is dismissedPaul Rouget2020-07-131-0/+2
|
* ensure clean shutdown of all threads running JSGregory Terzian2020-06-301-1/+1
|
* Make url for "client" referrer mandatoryMatthias Deiml2020-06-171-2/+2
|
* script: Don't panic when IPC WebRender APIs fail during shutdown.Josh Matthews2020-06-091-3/+3
|
* Remove unecessary webrender document from layout.Josh Matthews2020-06-091-23/+9
|
* integrate readablestream with fetch and blobGregory Terzian2020-06-041-3/+3
|
* reading unminified scripts from diskskrzyp12020-06-021-0/+1
|
* Implement client-side logic for WebGPU id recyclingKunal Mohan2020-05-221-0/+4
|
* serviceworker: make job queue unique per originGregory Terzian2020-05-211-2/+2
|
* Auto merge of #26335 - jdm:wrup, r=SimonSapinbors-servo2020-05-121-6/+20
|\ | | | | | | Update webrender.
| * Convert all uses of UpdateResources api to use webrender transactions.Josh Matthews2020-05-111-6/+20
| |
* | Move most animation processing to scriptMartin Robinson2020-05-121-55/+0
|/ | | | | | | This is preparation for sharing this code with layout_2020 and implementing selective off-the-main-thread animations. We still look for nodes not in the flow tree in the layout thread.
* Start having animations conform to the HTML specMartin Robinson2020-05-051-13/+17
| | | | | | | | | | | | | | This is a small step toward fixing #19242. The main idea is that the clock for animations should advance as the event loop ticks. We accomplish this by moving the clock from layout and naming it the "animation timeline" which is the spec language. This should fix flakiness with animations and transitions tests where a reflow could move animations forward while script was running. This change also starts to break out transition and animation events into their own data structure, because it's quite likely that the next step in fixing #19242 is to no longer send these events through a channel.
* Use a restyle for animation ticksMartin Robinson2020-05-051-10/+12
| | | | | | | | | | | | | | This change corrects synchronization issues with animations, by reworking the animation processing model to do a quick restyle and incremental layout when ticking animations. While this change adds overhead to animation ticks, the idea is that this will be the fallback when synchronous behavior is required to fulfill specification requirements. In the optimistic case, many animations could be updated and applied off-the-main-thread and then resynchronized when style information is queried by script. Fixes #13865.
* Add support for animationend eventMartin Robinson2020-05-011-12/+37
| | | | | | | | | | This is triggered when an animation finishes. This is a high priority because it allows us to start rooting nodes with animations in the script thread. This doesn't yet cause a lot of tests to pass because they rely on the existence of `Document.getAnimations()` and the presence of `animationstart` and animationiteration` events.
* Add support for transitionrun eventsMartin Robinson2020-04-241-1/+3
| | | | | | These events are triggered as soon as a transition is added to the list of running transitions. This will allow better test coverage while reworking the transitions and animations processing model.
* Add support for canceling CSS transitionsMartin Robinson2020-04-221-3/+24
| | | | | | | | | | | This change adds support for canceling CSS transitions when a property is no longer transitionable or when an element becomes styled with display:none. Support for canceling and replacing CSS transitions when the end value changes is still pending. This change also takes advantage of updating the constellation message to fix a bug where transition events could be sent for closed pipelines. Fixes #15079.
* Remove WebVRAlan Jeffrey2020-04-081-6/+0
|
* allow for a service worker manager per originGregory Terzian2020-04-051-0/+7
|
* implement broadcastchannelGregory Terzian2020-02-251-1/+64
|
* Make Background Hang Monitor OptionalKunal Mohan2020-02-231-1/+1
| | | | | | This is done by wrapping all channels of communication and related objects inside Option which are configured using flag inside servo_config.
* remove option for origin and mirror changes to layout_thread_2020Kunal Mohan2020-02-181-1/+1
|
* move ConstellationMsg to compositingKunal Mohan2020-01-291-99/+2
|
* Move `OpaqueNode` to `style_traits`Simon Sapin2020-01-131-0/+6
|
* Only start WebGPU thread if an adapter is requestedZakor Gyula2020-01-131-3/+0
|
* Auto merge of #24123 - gterzian:redo_blob, r=jdmbors-servo2019-12-191-1/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restructure Blob, structured serialization <!-- Please describe your changes on the following line: --> FIX #24052 and also address the "cloning" half of FIX #23917 --- <!-- 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 ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/24123) <!-- Reviewable:end -->
| * re-structure blob, structured serializationGregory Terzian2019-12-111-1/+7
| |
* | Remove Optional pipeline_idWarren Fisher2019-12-191-1/+1
| |
* | Do not wake up embedder on each animation tickPaul Rouget2019-12-161-1/+1
|/
* Use non-IPC webrender API over explicit IPC channels.Josh Matthews2019-11-271-4/+137
|
* Initial implementation of WebGPU APIZakor Gyula2019-11-211-0/+3
|
* Fix media session action handlingFernando Jiménez Moreno2019-11-201-2/+2
|