nsPresContext.cpp,.h - Added eWidgetRendering_PartialGfx as a rendering mode to PresContext.
ua.css - Added select[multiple] rule for multi-select listboxes without a size Fixed form submission for gfx checkboxes,radiobuttons, and select by rewriting GetNamesValues. Added nsListControlFrame::GetSizeAttribute and nsListControlFrame::GetNumberOfRows Added logic to nsCSSFrameConstructor::ConstructSelectFrame and nsListControlFrame::Reflow to handle the case of a multiselect select without a size specified.
This commit is contained in:
@@ -381,7 +381,7 @@ nsButtonControlFrame::Reflow(nsIPresContext& aPresContext,
|
||||
nsWidgetRendering mode;
|
||||
aPresContext.GetWidgetRenderingMode(&mode);
|
||||
|
||||
if (eWidgetRendering_Gfx == mode || NS_FORM_INPUT_IMAGE == type) {
|
||||
if (eWidgetRendering_Gfx == mode || eWidgetRendering_PartialGfx == mode || NS_FORM_INPUT_IMAGE == type) {
|
||||
// add ourself as an nsIFormControlFrame
|
||||
if (!mFormFrame && (eReflowReason_Initial == aReflowState.reason)) {
|
||||
nsFormFrame::AddFormControlFrame(aPresContext, *this);
|
||||
|
||||
Reference in New Issue
Block a user