Hi dev-platform, Heads up: I just landed on Inbound a patch that gives nsIntPoint and nsIntRect the same treatment I gave to nsIntSize: these two classes are now typedefs of mozilla::gfx::IntPoint and mozilla::gfx::IntRect, which means that they can't be forward-declared as they used to, but other than that, you can use them mostly the way you used them before.
If you are writing code in gfx, please refrain from using the nsInt* typedefs and use gfx::Int* instead. If you are writing code in other modules, module owners shall decide what's best. The discussions on this list (after I landed the nsIntSize change) seemed to indicate that people outside of gfx are generally in favor of using gfx::Int* classes rather than their nsInt typedefs. Cheers, Nical On Sun, Mar 29, 2015 at 11:01 PM, Mats Palmgren <m...@mozilla.com> wrote: > On 03/27/2015 09:28 PM, Robert O'Callahan wrote: > >> As a followup it's probably worth replacing all of nsIntSize with >> gfx::IntSize. >> > > I think we should stop using these unit-less types in layout and > convert the few remaining uses to the unit-bearing types in > layout/base/Units.h instead. > > I'm taking a stab on a couple of those so I'd prefer if you > leave nsIntSize as is for now in layout/ to avoid conflicts. > > > /Mats > > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform