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?
And I assume it is the mRect.x mRect,y which save the (x,y) of the
check box? Am I correct?
Thank you for any help.
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout