mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Format script component
This commit is contained in:
parent
2ca7a13473
commit
c37a345dc9
357 changed files with 25485 additions and 18076 deletions
|
@ -29,11 +29,7 @@ impl fmt::Debug for DOMManipulationTaskSource {
|
|||
impl TaskSource for DOMManipulationTaskSource {
|
||||
const NAME: TaskSourceName = TaskSourceName::DOMManipulation;
|
||||
|
||||
fn queue_with_canceller<T>(
|
||||
&self,
|
||||
task: T,
|
||||
canceller: &TaskCanceller,
|
||||
) -> Result<(), ()>
|
||||
fn queue_with_canceller<T>(&self, task: T, canceller: &TaskCanceller) -> Result<(), ()>
|
||||
where
|
||||
T: TaskOnce + 'static,
|
||||
{
|
||||
|
@ -48,12 +44,14 @@ impl TaskSource for DOMManipulationTaskSource {
|
|||
}
|
||||
|
||||
impl DOMManipulationTaskSource {
|
||||
pub fn queue_event(&self,
|
||||
target: &EventTarget,
|
||||
name: Atom,
|
||||
bubbles: EventBubbles,
|
||||
cancelable: EventCancelable,
|
||||
window: &Window) {
|
||||
pub fn queue_event(
|
||||
&self,
|
||||
target: &EventTarget,
|
||||
name: Atom,
|
||||
bubbles: EventBubbles,
|
||||
cancelable: EventCancelable,
|
||||
window: &Window,
|
||||
) {
|
||||
let target = Trusted::new(target);
|
||||
let task = EventTask {
|
||||
target: target,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue