aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
Commit message (Collapse)AuthorAgeFilesLines
* Formatting.Josh Matthews2023-05-281-1/+4
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-6/+47
|
* Fix formatting.Josh Matthews2023-05-201-2/+1
|
* Remove unused argument from AlreadyInRealm::assert.Josh Matthews2023-05-201-2/+2
|
* Remove global argument from Promise::new_in_current_realm.Josh Matthews2023-05-201-2/+2
|
* Fix flakiness in animation testsMartin Robinson2023-05-021-0/+12
| | | | | | | | | | | | | | 1. When updating the animation timeline, ensure that nodes that are animating are marked dirty, if necessary, so any style queries will force an layout flush. 2. Disable the problematic transition test suites, as they are in Gecko. These suites often fail when Servo is so overloaded that it cannot deliver frames fast enough to get more than two samples during the animation lifecycle. Fixes #28334. Fixes #26435. Fixes #21486.
* clarify todos about exposed objectsDelan Azabani2023-03-231-3/+9
|
* apply pylbrecht/servo/named.window.getter (closes #27952)Delan Azabani2023-03-231-175/+147
|
* Replaced ref_slice::ref_slice with std::slice::from_refAdrian Willenbücher2021-06-101-2/+2
| | | | | | | ref_slice::ref_slice is deprecated in ref_slice-1.2.1, because it's redundant with std since rust 1.28. Signed-off-by: Adrian Willenbücher <willenbuecher@xq-tec.com>
* Improve IME messaging to embedder with insertion point index and multiline flag.Philip Lamb2021-03-291-4/+17
|
* Miscellaneous build / tidy fixes.Emilio Cobos Álvarez2021-02-261-3/+9
|
* fmtteymour-aldridge2021-02-051-1/+1
|
* Remove unused arguments from methods.teymour-aldridge2021-02-051-9/+5
|
* Fix errorsteymour-aldridge2021-02-051-4/+4
|
* Mark methods as unsafe.teymour-aldridge2021-02-051-4/+4
|
* Fix mouse button handlingYUAN LYU2020-12-061-2/+6
|
* Implement ParentNode#replaceChildrenVincent Ricard2020-09-251-0/+5
|
* devtools: Treat session history traversal like a navigation.Josh Matthews2020-08-101-1/+5
|
* Do not panic on navigating across documentsUtsav Oza2020-07-301-5/+8
|
* Fix comments for handle_mouse_move_event methodUtsav Oza2020-07-301-46/+41
|
* Fire mouseenter and mouseleave eventsUtsav Oza2020-07-301-6/+81
|
* Fix ordering of mousemove eventUtsav Oza2020-07-301-75/+71
|
* Unfocus input when virtual keyboard is dismissedPaul Rouget2020-07-131-0/+7
|
* Add a sessionavailable event that allows content to enter an XR session ↵Alan Jeffrey2020-07-101-0/+12
| | | | without a user gesture
* Auto merge of #27163 - ↵bors-servo2020-07-041-15/+17
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | alarsyo:23053-layout-queries-disconnected-frames-panic, r=jdm Return Option for Window's layout channel <!-- Please describe your changes on the following line: --> `Window::layout_chan()` now returns an `Option<Sender<Msg>>`, returning `None` if the window is dead. FIX #26969 FIX #26429 FIX #21208 FIX #19092 FIX #22559 FIX #22584 FIX #22652 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #23053 <!-- Either: --> - [x] There are tests for these changes <!-- 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. --> This is my first contribution, I'm trying to figure things out! This fix passes the test case shown in #23053, however I don't know what the behavior should be in `Document` and `ScriptThread` if `Window::is_alive()` is false : simply ignore it, don't do anything ? Or is this something that should not happen now that we return false in `Window::force_reflow()` ? I'm not sure about the directory where the test case should go, any advice?
| * Return Option for Window's layout channelAntoine Martin2020-07-031-15/+17
| |
* | UWP: support virtual keyboardPaul Rouget2020-07-021-2/+23
|/
* Support for webxr layer managementAlan Jeffrey2020-06-281-2/+2
|
* Auto merge of #26953 - mrobinson:cancel-reparent, r=noxbors-servo2020-06-221-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cancel animations for nodes which are removed from the DOM This includes nodes which are being reparented. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes <!-- 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. -->
| * Cancel animations for nodes which are removed from the DOMMartin Robinson2020-06-171-0/+4
| | | | | | | | This includes nodes which are being reparented.
* | Send LoadStart event when the actual pipeline is loadingPaul Rouget2020-06-221-0/+6
|/
* Auto merge of #26872 - kunalmohan:gpu-canvas-context, r=kvark,jdmbors-servo2020-06-151-2/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement GPUSwapChain and GPUCanvasContext and interface with Webrender <!-- Please describe your changes on the following line: --> r?@kvark --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./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. -->
| * Implement GPUSwapChain and GPUCanvasContext and interface with WebrenderKunal Mohan2020-06-131-2/+21
| |
* | Update document focus when element focusability changes.Josh Matthews2020-06-151-0/+11
| |
* | Make clicking on an element request focus for focusable elements.Josh Matthews2020-06-151-11/+42
|/
* style: Miscellaneous servo build fixes.Emilio Cobos Álvarez2020-06-041-2/+11
|
* Have Animations struct handle rooting nodesMartin Robinson2020-05-261-10/+10
| | | | | | | Instead of having `ScriptThread` handle rooting nodes, do this in `Animations`. This makes it easier to know when it is appropriate to root and unroot nodes instead of relying on a certain order of events. This also allows reducing quite a bit the amount of unsafe code.
* Implement animationiteration eventMartin Robinson2020-05-211-4/+18
| | | | | | This event is triggered when an animation iterates. This change also moves iteration out of style calculation to an "update animations" which is the next part of having animation event handling match the HTML spec.
* Auto merge of #26546 - splav:tls-protected-checks, r=jdmbors-servo2020-05-191-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | check http_state in determine_request_referrer <!-- Please describe your changes on the following line: --> Check https status inside determine_request_referrer. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14506 (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. -->
| * check http_state in determine_request_referrerAlexandrov Sergey2020-05-191-0/+1
| |
* | Auto merge of #26499 - utsavoza:ugo/issue-26287/10-05-2020, r=jdmbors-servo2020-05-191-4/+19
|\ \ | |/ |/| | | | | | | | | | | | | Add creator URL, creator base URL and creator origin to browsing context - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24944 and fix (partially) #26287 - [x] There are tests for these changes
| * Update wpt-tests metadataUtsav Oza2020-05-191-1/+0
| |
| * Update wpt-tests metadataUtsav Oza2020-05-181-0/+7
| |
| * Add creator URL, creator base URL and creator origin in browsing contextUtsav Oza2020-05-181-4/+13
| |
* | Implement concept of dirty rootAnthony Ramine2020-05-191-2/+117
|/
* dom: Implement stub queryCommandSupported.Josh Matthews2020-05-131-0/+5
|
* Move most animation processing to scriptMartin Robinson2020-05-121-3/+17
| | | | | | | 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-0/+21
| | | | | | | | | | | | | | 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.
* Update window.open() to return fallible resultUtsav Oza2020-05-041-7/+3
|
* Update devtools page titles.Josh Matthews2020-04-281-0/+8
|