Remove needless '&mut self' from Window/Document

related #2514