Make LayoutCanvasWebGLRenderingContextHelpers methods take self

This commit is contained in:
Anthony Ramine 2020-03-29 17:25:59 +02:00
parent 301acdc309
commit d87444cb1f
2 changed files with 3 additions and 3 deletions

View file

@ -3886,7 +3886,7 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
impl LayoutCanvasWebGLRenderingContextHelpers for LayoutDom<'_, WebGL2RenderingContext> {
#[allow(unsafe_code)]
unsafe fn canvas_data_source(&self) -> HTMLCanvasDataSource {
unsafe fn canvas_data_source(self) -> HTMLCanvasDataSource {
let this = &*self.unsafe_get();
(*this.base.to_layout().unsafe_get()).layout_handle()
}