mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 706889 - Apply font-inflation to checkboxes and radio buttons. r=dbaron
This commit is contained in:
parent
0d832e174e
commit
5a665a0956
@ -37,6 +37,7 @@
|
||||
|
||||
#include "nsFormControlFrame.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsLayoutUtils.h"
|
||||
#include "nsIDOMHTMLInputElement.h"
|
||||
#include "nsEventStateManager.h"
|
||||
#include "mozilla/LookAndFeel.h"
|
||||
@ -112,8 +113,21 @@ nsFormControlFrame::Reflow(nsPresContext* aPresContext,
|
||||
RegUnRegAccessKey(static_cast<nsIFrame*>(this), true);
|
||||
}
|
||||
|
||||
return nsLeafFrame::Reflow(aPresContext, aDesiredSize, aReflowState,
|
||||
aStatus);
|
||||
nsresult rv = nsLeafFrame::Reflow(aPresContext, aDesiredSize, aReflowState,
|
||||
aStatus);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
if (nsLayoutUtils::FontSizeInflationEnabled(aPresContext)) {
|
||||
float inflation =
|
||||
nsLayoutUtils::FontSizeInflationFor(this, nsLayoutUtils::eInReflow);
|
||||
aDesiredSize.width *= inflation;
|
||||
aDesiredSize.height *= inflation;
|
||||
aDesiredSize.UnionOverflowAreasWithDesiredBounds();
|
||||
FinishAndStoreOverflow(&aDesiredSize);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
Loading…
Reference in New Issue
Block a user