2023-06-05 10:44:54 +10:00
disallowed-methods = [
{ path = "web_sys::window" , reason = "is not available in every context" } ,
2023-06-07 06:58:03 +10:00
{ path = "web_sys::HtmlCanvasElement::width" , reason = "Winit shouldn't touch the internal canvas size" } ,
{ path = "web_sys::HtmlCanvasElement::height" , reason = "Winit shouldn't touch the internal canvas size" } ,
{ path = "web_sys::HtmlCanvasElement::set_width" , reason = "Winit shouldn't touch the internal canvas size" } ,
{ path = "web_sys::HtmlCanvasElement::set_height" , reason = "Winit shouldn't touch the internal canvas size" } ,
2023-07-11 08:11:06 +10:00
{ path = "web_sys::Window::document" , reason = "cache this to reduce calls to JS" } ,
{ path = "web_sys::Window::get_computed_style" , reason = "cache this to reduce calls to JS" } ,
2023-07-11 08:34:02 +10:00
{ path = "web_sys::Element::request_fullscreen" , reason = "Doesn't account for compatibility with Safari" } ,
{ path = "web_sys::Document::exit_fullscreen" , reason = "Doesn't account for compatibility with Safari" } ,
{ path = "web_sys::Document::fullscreen_element" , reason = "Doesn't account for compatibility with Safari" } ,
2023-08-25 06:52:11 +10:00
{ path = "icrate::AppKit::NSView::visibleRect" , reason = "We expose a render target to the user, and visibility is not really relevant to that (and can break if you don't use the rectangle position as well). Use `frame` instead." } ,
2023-06-05 10:44:54 +10:00
]