On Apr 30, 7:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a question about nsGfxCheckboxControlFrame::Paint().
>
> In the Paint() of nsGfxCheckboxControlFrame, it calls PaintOutline()
> like this:
>
> nsRect rect(0, 0, mRect.width, mRect.height);
> const nsStyleOutline* myOutline = GetStyleOutline();
> nsCSSRendering::PaintOutline(aPresContext, aRenderingContext,
> this,
> aDirtyRect, rect, *myBorder,
> *myOutline,
> mStyleContext, 0);
>
> if (doDefaultPainting) {
> PaintCheckBox(aPresContext, aRenderingContext, aDirtyRect,
> aWhichLayer);
> }
>
> Why it is passing in (0,0) as (x,y) in rect parameter in calling the
> PaintOutline of nsCSSRendering?
>
> Doesn't need to shift to the (x,y) of the checkbox for the
> PaintOutline to work?
Is this Gecko 1.8?
Rob
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout