mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
dom: set composed flag when constructing ClipboardEvent
(#35146)
* clipboardevent: set composed flag Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * add clipboardevent test expectations Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> --------- Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
parent
527eaf628a
commit
6195026db0
7 changed files with 191 additions and 3 deletions
|
@ -623,6 +623,10 @@ impl Event {
|
|||
self.is_trusted.set(trusted);
|
||||
}
|
||||
|
||||
pub(crate) fn set_composed(&self, composed: bool) {
|
||||
self.composed.set(composed);
|
||||
}
|
||||
|
||||
/// <https://html.spec.whatwg.org/multipage/#fire-a-simple-event>
|
||||
pub(crate) fn fire(&self, target: &EventTarget, can_gc: CanGc) -> EventStatus {
|
||||
self.set_trusted(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue