I see great oportunities for reducing the code line count in [Coord.h](https://searchfox.org/mozilla-central/source/gfx/2d/Coord.h) if we can safely assume we're using at least C++14: we can get rid of `struct CommonType` completely and just return `auto`: https://www.modernescpp.com/index.php/automatic-return-type-c-11-14-20 Though that's possibly another independent bug. Let me know what you think.
Bug 1843524 Comment 2 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I see great opportunities for reducing the code line count in [Coord.h](https://searchfox.org/mozilla-central/source/gfx/2d/Coord.h) if we can safely assume we're using at least C++14: we can get rid of `struct CommonType` completely and just return `auto`: https://www.modernescpp.com/index.php/automatic-return-type-c-11-14-20 Though that's possibly another independent bug. Let me know what you think.