6 Jan
2023
6 Jan
'23
5:12 p.m.
On Fri Jan 6 17:08:20 2023 +0000, Santino Mazza wrote:
Oh, I used casting because in HTMLDocument3_createDocumentFragment it uses casting for passing nsIDOMDocumentFragment to create_document_fragment as nsIDOMNode Yeah, I know it "works", it's just fragile and some would say ugly. :D
Down-casting in contrast is totally fine, since it inherits from nsIDOMNode. But the other way around isn't. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1918#note_20436