From ef19f8a40bd7d98de099e8a87eedd9653e468841 Mon Sep 17 00:00:00 2001 From: "pierre%netscape.com" Date: Mon, 8 Mar 1999 04:46:12 +0000 Subject: [PATCH] small change to make it behave like nsCheckboxControlFrame when the WidgetRenderingMode is not initialized. git-svn-id: svn://10.0.0.236/trunk@23155 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/forms/src/nsRadioControlFrame.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/layout/html/forms/src/nsRadioControlFrame.cpp b/mozilla/layout/html/forms/src/nsRadioControlFrame.cpp index 5311367da99..4c2e078e747 100644 --- a/mozilla/layout/html/forms/src/nsRadioControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsRadioControlFrame.cpp @@ -105,7 +105,10 @@ nsRadioControlFrame::GetDesiredSize(nsIPresContext* aPresContext, nsWidgetRendering mode; aPresContext->GetWidgetRenderingMode(&mode); - if (eWidgetRendering_Native == mode) { + if (eWidgetRendering_Gfx == mode) { + nsFormControlFrame::GetDesiredSize(aPresContext,aReflowState,aDesiredLayoutSize, + aDesiredWidgetSize); + } else { float p2t; aPresContext->GetScaledPixelsToTwips(&p2t); aDesiredWidgetSize.width = GetRadioboxSize(p2t); @@ -119,9 +122,6 @@ nsRadioControlFrame::GetDesiredSize(nsIPresContext* aPresContext, aDesiredLayoutSize.maxElementSize->width = aDesiredLayoutSize.width; aDesiredLayoutSize.maxElementSize->height = aDesiredLayoutSize.height; } - } else { - nsFormControlFrame::GetDesiredSize(aPresContext,aReflowState,aDesiredLayoutSize, - aDesiredWidgetSize); } }