aDesiredWidgetSize.width  = GetCheckboxSize(p2t); aDesiredWidgetSize.height = aDesiredWidgetSize.width;
nsCheckboxControlFrame::GetDesiredSize(nsIPresContext* aPresContext,                                            const nsHTMLReflowState& aReflowState,                                            nsHTMLReflowMetrics& aDesiredLayoutSize,                                            nsSize& aDesiredWidgetSize){  float p2t;  aPresContext->GetScaledPixelsToTwips(p2t);#ifndef NS_GFX_RENDER_FORM_ELEMENTS#ifdef XP_PC    aDesiredWidgetSize.width  = NSIntPixelsToTwips(NS_DESIRED_CHECKBOX_SIZE, p2t);   aDesiredWidgetSize.height = NSIntPixelsToTwips(NS_DESIRED_CHECKBOX_SIZE, p2t);#endif#endif#ifdef NS_GFX_RENDER_FORM_ELEMENTS   nsFormControlFrame::GetDesiredSize(aPresContext, aReflowState,      aDesiredLayoutSize, aDesiredWidgetSize);#else    aDesiredLayoutSize.width  = aDesiredWidgetSize.width;    aDesiredLayoutSize.height = aDesiredWidgetSize.height;    aDesiredLayoutSize.ascent = aDesiredLayoutSize.height;    aDesiredLayoutSize.descent = 0;#endif}