Re: [css-regions] Possible change to the Region interface

Events and some APIs in context 2d (such as fillStyle and strokeStyle) use
unions.


On Thu, Oct 3, 2013 at 1:34 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Thu, Oct 3, 2013 at 12:45 PM, Mihnea-Vlad Ovidenie <mihnea@adobe.com>
> wrote:
> > On 10/1/13 6:07 PM, "Boris Zbarsky" <bzbarsky@MIT.EDU> wrote:
> >>Indeed.  Gecko would represent the above as a vector of tagged unions on
> >>the c++ side.
> >
> > Are you saying that Gecko has support for the above scenario without
> > multiple inheritance in the C++ layer? Would you mind pointing me to
> where
> > I should take a look and what are the interfaces involved?
>
> Boris just said how it's done - with tagged unions.  We definitely use
> tagged unions in a few places in WebKit/Blink code.  (I think
> CSSValue, or some interface around that area, uses it.)
>
> ~TJ
>
>

Received on Thursday, 3 October 2013 21:13:41 UTC