mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
clippy: Allow too_many_arguments
for all functions (#31962)
This is the start of preventing this in the future. Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
8c1a72f130
commit
0da2508e4d
23 changed files with 51 additions and 0 deletions
|
@ -1544,6 +1544,7 @@ impl<'a> TableLayout<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn do_final_cell_layout(
|
fn do_final_cell_layout(
|
||||||
&mut self,
|
&mut self,
|
||||||
row_index: usize,
|
row_index: usize,
|
||||||
|
|
|
@ -351,6 +351,7 @@ impl CanvasState {
|
||||||
// is copied on the rectangle (dx, dy, dh, dw) of the destination canvas
|
// is copied on the rectangle (dx, dy, dh, dw) of the destination canvas
|
||||||
//
|
//
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-context-2d-drawimage
|
// https://html.spec.whatwg.org/multipage/#dom-context-2d-drawimage
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn draw_image_internal(
|
fn draw_image_internal(
|
||||||
&self,
|
&self,
|
||||||
htmlcanvas: Option<&HTMLCanvasElement>,
|
htmlcanvas: Option<&HTMLCanvasElement>,
|
||||||
|
@ -425,6 +426,7 @@ impl CanvasState {
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn draw_offscreen_canvas(
|
fn draw_offscreen_canvas(
|
||||||
&self,
|
&self,
|
||||||
canvas: &OffscreenCanvas,
|
canvas: &OffscreenCanvas,
|
||||||
|
@ -479,6 +481,7 @@ impl CanvasState {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn draw_html_canvas_element(
|
fn draw_html_canvas_element(
|
||||||
&self,
|
&self,
|
||||||
canvas: &HTMLCanvasElement, // source canvas
|
canvas: &HTMLCanvasElement, // source canvas
|
||||||
|
@ -539,6 +542,7 @@ impl CanvasState {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn fetch_and_draw_image_data(
|
fn fetch_and_draw_image_data(
|
||||||
&self,
|
&self,
|
||||||
canvas: Option<&HTMLCanvasElement>,
|
canvas: Option<&HTMLCanvasElement>,
|
||||||
|
@ -594,6 +598,7 @@ impl CanvasState {
|
||||||
// on the drawImage call arguments
|
// on the drawImage call arguments
|
||||||
// source rectangle = area of the original image to be copied
|
// source rectangle = area of the original image to be copied
|
||||||
// destination rectangle = area of the destination canvas where the source image is going to be drawn
|
// destination rectangle = area of the destination canvas where the source image is going to be drawn
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn adjust_source_dest_rects(
|
fn adjust_source_dest_rects(
|
||||||
&self,
|
&self,
|
||||||
image_size: Size2D<f64>,
|
image_size: Size2D<f64>,
|
||||||
|
@ -840,6 +845,7 @@ impl CanvasState {
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-context-2d-createradialgradient
|
// https://html.spec.whatwg.org/multipage/#dom-context-2d-createradialgradient
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn create_radial_gradient(
|
pub fn create_radial_gradient(
|
||||||
&self,
|
&self,
|
||||||
global: &GlobalScope,
|
global: &GlobalScope,
|
||||||
|
@ -1279,6 +1285,7 @@ impl CanvasState {
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-context-2d-putimagedata
|
// https://html.spec.whatwg.org/multipage/#dom-context-2d-putimagedata
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn put_image_data_(
|
pub fn put_image_data_(
|
||||||
&self,
|
&self,
|
||||||
canvas_size: Size2D<u64>,
|
canvas_size: Size2D<u64>,
|
||||||
|
@ -1375,6 +1382,7 @@ impl CanvasState {
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-context-2d-drawimage
|
// https://html.spec.whatwg.org/multipage/#dom-context-2d-drawimage
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn draw_image__(
|
pub fn draw_image__(
|
||||||
&self,
|
&self,
|
||||||
canvas: Option<&HTMLCanvasElement>,
|
canvas: Option<&HTMLCanvasElement>,
|
||||||
|
@ -1646,6 +1654,7 @@ impl CanvasState {
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-context-2d-ellipse
|
// https://html.spec.whatwg.org/multipage/#dom-context-2d-ellipse
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn ellipse(
|
pub fn ellipse(
|
||||||
&self,
|
&self,
|
||||||
x: f64,
|
x: f64,
|
||||||
|
|
|
@ -40,6 +40,7 @@ pub struct AudioParam {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AudioParam {
|
impl AudioParam {
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new_inherited(
|
pub fn new_inherited(
|
||||||
context: &BaseAudioContext,
|
context: &BaseAudioContext,
|
||||||
node: NodeId,
|
node: NodeId,
|
||||||
|
@ -64,6 +65,7 @@ impl AudioParam {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(crown::unrooted_must_root)]
|
#[allow(crown::unrooted_must_root)]
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
window: &Window,
|
window: &Window,
|
||||||
context: &BaseAudioContext,
|
context: &BaseAudioContext,
|
||||||
|
|
|
@ -229,6 +229,7 @@ pub fn create_callback_interface_object(
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create the interface prototype object of a non-callback interface.
|
/// Create the interface prototype object of a non-callback interface.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn create_interface_prototype_object(
|
pub fn create_interface_prototype_object(
|
||||||
cx: SafeJSContext,
|
cx: SafeJSContext,
|
||||||
global: HandleObject,
|
global: HandleObject,
|
||||||
|
@ -273,6 +274,7 @@ pub fn create_interface_prototype_object(
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create and define the interface object of a non-callback interface.
|
/// Create and define the interface object of a non-callback interface.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn create_noncallback_interface_object(
|
pub fn create_noncallback_interface_object(
|
||||||
cx: SafeJSContext,
|
cx: SafeJSContext,
|
||||||
global: HandleObject,
|
global: HandleObject,
|
||||||
|
@ -353,6 +355,7 @@ pub fn create_named_constructors(
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create a new object with a unique type.
|
/// Create a new object with a unique type.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn create_object(
|
pub fn create_object(
|
||||||
cx: SafeJSContext,
|
cx: SafeJSContext,
|
||||||
global: HandleObject,
|
global: HandleObject,
|
||||||
|
|
|
@ -35,6 +35,7 @@ impl NamespaceObjectClass {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create a new namespace object.
|
/// Create a new namespace object.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn create_namespace_object(
|
pub fn create_namespace_object(
|
||||||
cx: JSContext,
|
cx: JSContext,
|
||||||
global: HandleObject,
|
global: HandleObject,
|
||||||
|
|
|
@ -56,6 +56,7 @@ impl ProgressEvent {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new_with_proto(
|
fn new_with_proto(
|
||||||
global: &GlobalScope,
|
global: &GlobalScope,
|
||||||
proto: Option<HandleObject>,
|
proto: Option<HandleObject>,
|
||||||
|
|
|
@ -219,6 +219,7 @@ impl WorkerEventLoopMethods for ServiceWorkerGlobalScope {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ServiceWorkerGlobalScope {
|
impl ServiceWorkerGlobalScope {
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new_inherited(
|
fn new_inherited(
|
||||||
init: WorkerGlobalScopeInit,
|
init: WorkerGlobalScopeInit,
|
||||||
worker_url: ServoUrl,
|
worker_url: ServoUrl,
|
||||||
|
@ -253,6 +254,7 @@ impl ServiceWorkerGlobalScope {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
init: WorkerGlobalScopeInit,
|
init: WorkerGlobalScopeInit,
|
||||||
worker_url: ServoUrl,
|
worker_url: ServoUrl,
|
||||||
|
@ -285,6 +287,7 @@ impl ServiceWorkerGlobalScope {
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
// https://w3c.github.io/ServiceWorker/#run-service-worker-algorithm
|
// https://w3c.github.io/ServiceWorker/#run-service-worker-algorithm
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn run_serviceworker_scope(
|
pub fn run_serviceworker_scope(
|
||||||
scope_things: ScopeThings,
|
scope_things: ScopeThings,
|
||||||
own_sender: Sender<ServiceWorkerScriptMsg>,
|
own_sender: Sender<ServiceWorkerScriptMsg>,
|
||||||
|
|
|
@ -64,6 +64,7 @@ impl StorageEvent {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
global: &Window,
|
global: &Window,
|
||||||
type_: Atom,
|
type_: Atom,
|
||||||
|
@ -89,6 +90,7 @@ impl StorageEvent {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new_with_proto(
|
fn new_with_proto(
|
||||||
global: &Window,
|
global: &Window,
|
||||||
proto: Option<HandleObject>,
|
proto: Option<HandleObject>,
|
||||||
|
|
|
@ -30,6 +30,7 @@ pub struct TextMetrics {
|
||||||
|
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
impl TextMetrics {
|
impl TextMetrics {
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new_inherited(
|
fn new_inherited(
|
||||||
width: f64,
|
width: f64,
|
||||||
actualBoundingBoxLeft: f64,
|
actualBoundingBoxLeft: f64,
|
||||||
|
@ -61,6 +62,7 @@ impl TextMetrics {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
global: &GlobalScope,
|
global: &GlobalScope,
|
||||||
width: f64,
|
width: f64,
|
||||||
|
|
|
@ -25,6 +25,7 @@ pub struct Touch {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Touch {
|
impl Touch {
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new_inherited(
|
fn new_inherited(
|
||||||
identifier: i32,
|
identifier: i32,
|
||||||
target: &EventTarget,
|
target: &EventTarget,
|
||||||
|
@ -48,6 +49,7 @@ impl Touch {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
window: &Window,
|
window: &Window,
|
||||||
identifier: i32,
|
identifier: i32,
|
||||||
|
|
|
@ -63,6 +63,7 @@ impl TouchEvent {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
window: &Window,
|
window: &Window,
|
||||||
type_: DOMString,
|
type_: DOMString,
|
||||||
|
|
|
@ -456,6 +456,7 @@ impl WebGL2RenderingContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn read_pixels_into(
|
fn read_pixels_into(
|
||||||
&self,
|
&self,
|
||||||
x: i32,
|
x: i32,
|
||||||
|
@ -848,6 +849,7 @@ impl WebGL2RenderingContext {
|
||||||
.send_command(WebGLCommand::VertexAttribU(index, x, y, z, w));
|
.send_command(WebGLCommand::VertexAttribU(index, x, y, z, w));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn tex_storage(
|
fn tex_storage(
|
||||||
&self,
|
&self,
|
||||||
dimensions: u8,
|
dimensions: u8,
|
||||||
|
|
|
@ -255,6 +255,7 @@ pub struct TexImage2DValidator<'a> {
|
||||||
|
|
||||||
impl<'a> TexImage2DValidator<'a> {
|
impl<'a> TexImage2DValidator<'a> {
|
||||||
// TODO: Move data validation logic here.
|
// TODO: Move data validation logic here.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
context: &'a WebGLRenderingContext,
|
context: &'a WebGLRenderingContext,
|
||||||
target: u32,
|
target: u32,
|
||||||
|
@ -386,6 +387,7 @@ pub struct CommonCompressedTexImage2DValidator<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> CommonCompressedTexImage2DValidator<'a> {
|
impl<'a> CommonCompressedTexImage2DValidator<'a> {
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
context: &'a WebGLRenderingContext,
|
context: &'a WebGLRenderingContext,
|
||||||
target: u32,
|
target: u32,
|
||||||
|
@ -509,6 +511,7 @@ pub struct CompressedTexImage2DValidator<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> CompressedTexImage2DValidator<'a> {
|
impl<'a> CompressedTexImage2DValidator<'a> {
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
context: &'a WebGLRenderingContext,
|
context: &'a WebGLRenderingContext,
|
||||||
target: u32,
|
target: u32,
|
||||||
|
@ -585,6 +588,7 @@ pub struct CompressedTexSubImage2DValidator<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> CompressedTexSubImage2DValidator<'a> {
|
impl<'a> CompressedTexSubImage2DValidator<'a> {
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
context: &'a WebGLRenderingContext,
|
context: &'a WebGLRenderingContext,
|
||||||
target: u32,
|
target: u32,
|
||||||
|
@ -697,6 +701,7 @@ pub struct TexStorageValidatorResult {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> TexStorageValidator<'a> {
|
impl<'a> TexStorageValidator<'a> {
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
context: &'a WebGLRenderingContext,
|
context: &'a WebGLRenderingContext,
|
||||||
dimensions: u8,
|
dimensions: u8,
|
||||||
|
|
|
@ -747,6 +747,7 @@ impl WebGLRenderingContext {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn tex_image_2d(
|
pub fn tex_image_2d(
|
||||||
&self,
|
&self,
|
||||||
texture: &WebGLTexture,
|
texture: &WebGLTexture,
|
||||||
|
@ -834,6 +835,7 @@ impl WebGLRenderingContext {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn tex_sub_image_2d(
|
fn tex_sub_image_2d(
|
||||||
&self,
|
&self,
|
||||||
texture: DomRoot<WebGLTexture>,
|
texture: DomRoot<WebGLTexture>,
|
||||||
|
@ -1575,6 +1577,7 @@ impl WebGLRenderingContext {
|
||||||
constants::COLOR_ATTACHMENT0 <= attachment && attachment <= last_slot
|
constants::COLOR_ATTACHMENT0 <= attachment && attachment <= last_slot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn compressed_tex_image_2d(
|
pub fn compressed_tex_image_2d(
|
||||||
&self,
|
&self,
|
||||||
target: u32,
|
target: u32,
|
||||||
|
@ -1642,6 +1645,7 @@ impl WebGLRenderingContext {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn compressed_tex_sub_image_2d(
|
pub fn compressed_tex_sub_image_2d(
|
||||||
&self,
|
&self,
|
||||||
target: u32,
|
target: u32,
|
||||||
|
|
|
@ -152,6 +152,7 @@ impl WebGLTexture {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn initialize(
|
pub fn initialize(
|
||||||
&self,
|
&self,
|
||||||
target: TexImageTarget,
|
target: TexImageTarget,
|
||||||
|
|
|
@ -44,6 +44,7 @@ impl WheelEvent {
|
||||||
reflect_dom_object_with_proto(Box::new(WheelEvent::new_inherited()), window, proto)
|
reflect_dom_object_with_proto(Box::new(WheelEvent::new_inherited()), window, proto)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
window: &Window,
|
window: &Window,
|
||||||
type_: DOMString,
|
type_: DOMString,
|
||||||
|
@ -62,6 +63,7 @@ impl WheelEvent {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new_with_proto(
|
fn new_with_proto(
|
||||||
window: &Window,
|
window: &Window,
|
||||||
proto: Option<HandleObject>,
|
proto: Option<HandleObject>,
|
||||||
|
|
|
@ -129,6 +129,7 @@ pub struct WorkerGlobalScope {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl WorkerGlobalScope {
|
impl WorkerGlobalScope {
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new_inherited(
|
pub fn new_inherited(
|
||||||
init: WorkerGlobalScopeInit,
|
init: WorkerGlobalScopeInit,
|
||||||
worker_name: DOMString,
|
worker_name: DOMString,
|
||||||
|
|
|
@ -301,6 +301,7 @@ impl WorkletThreadPool {
|
||||||
/// If all of the threads load successfully, the promise is resolved.
|
/// If all of the threads load successfully, the promise is resolved.
|
||||||
/// If any of the threads fails to load, the promise is rejected.
|
/// If any of the threads fails to load, the promise is rejected.
|
||||||
/// <https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script>
|
/// <https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script>
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn fetch_and_invoke_a_worklet_script(
|
fn fetch_and_invoke_a_worklet_script(
|
||||||
&self,
|
&self,
|
||||||
pipeline_id: PipelineId,
|
pipeline_id: PipelineId,
|
||||||
|
@ -625,6 +626,7 @@ impl WorkletThread {
|
||||||
|
|
||||||
/// Fetch and invoke a worklet script.
|
/// Fetch and invoke a worklet script.
|
||||||
/// <https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script>
|
/// <https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script>
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn fetch_and_invoke_a_worklet_script(
|
fn fetch_and_invoke_a_worklet_script(
|
||||||
&self,
|
&self,
|
||||||
global_scope: &WorkletGlobalScope,
|
global_scope: &WorkletGlobalScope,
|
||||||
|
|
|
@ -28,6 +28,7 @@ pub struct XMLDocument {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl XMLDocument {
|
impl XMLDocument {
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new_inherited(
|
fn new_inherited(
|
||||||
window: &Window,
|
window: &Window,
|
||||||
has_browsing_context: HasBrowsingContext,
|
has_browsing_context: HasBrowsingContext,
|
||||||
|
@ -59,6 +60,7 @@ impl XMLDocument {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
window: &Window,
|
window: &Window,
|
||||||
has_browsing_context: HasBrowsingContext,
|
has_browsing_context: HasBrowsingContext,
|
||||||
|
|
|
@ -61,6 +61,7 @@ impl XRInputSourcesChangeEvent {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new_with_proto(
|
fn new_with_proto(
|
||||||
global: &GlobalScope,
|
global: &GlobalScope,
|
||||||
proto: Option<HandleObject>,
|
proto: Option<HandleObject>,
|
||||||
|
|
|
@ -1545,6 +1545,7 @@ struct DynamicModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://html.spec.whatwg.org/multipage/#fetch-a-single-module-script>
|
/// <https://html.spec.whatwg.org/multipage/#fetch-a-single-module-script>
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn fetch_single_module_script(
|
fn fetch_single_module_script(
|
||||||
owner: ModuleOwner,
|
owner: ModuleOwner,
|
||||||
url: ServoUrl,
|
url: ServoUrl,
|
||||||
|
|
|
@ -225,6 +225,7 @@ struct InProgressLoad {
|
||||||
|
|
||||||
impl InProgressLoad {
|
impl InProgressLoad {
|
||||||
/// Create a new InProgressLoad object.
|
/// Create a new InProgressLoad object.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new(
|
fn new(
|
||||||
id: PipelineId,
|
id: PipelineId,
|
||||||
browsing_context_id: BrowsingContextId,
|
browsing_context_id: BrowsingContextId,
|
||||||
|
@ -3645,6 +3646,7 @@ impl ScriptThread {
|
||||||
ScriptThread::set_user_interacting(false);
|
ScriptThread::set_user_interacting(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn handle_mouse_event(
|
fn handle_mouse_event(
|
||||||
&self,
|
&self,
|
||||||
pipeline_id: PipelineId,
|
pipeline_id: PipelineId,
|
||||||
|
|
|
@ -65,6 +65,7 @@ pub struct TaskManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TaskManager {
|
impl TaskManager {
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
dom_manipulation_task_source: DOMManipulationTaskSource,
|
dom_manipulation_task_source: DOMManipulationTaskSource,
|
||||||
file_reading_task_source: FileReadingTaskSource,
|
file_reading_task_source: FileReadingTaskSource,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue