Commit Graph
151 Commits
Author SHA1 Message Date
rods@netscape.com 4cc4729cef Added generated content for optgroups, fixed option to be display:block
change optgroup inside of option
1999-07-28 21:43:43 +00:00
vidur@netscape.com fedbce2269 Forms can now be container content. 1999-07-22 23:28:16 +00:00
kmcclusk@netscape.com 1e6157fdaf 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.
1999-07-20 22:32:41 +00:00
kmcclusk@netscape.com 0bdaefde4e fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-14 22:00:24 +00:00
kipp@netscape.com c4a3cf1acc Tweaked nested dl handling; added counter-reset property for better list numbering handling 1999-07-14 17:31:17 +00:00
kmcclusk@netscape.com fd0c89e7b0 Modified gfx-rendered widget styles to more closely match styles
in http://www.mozilla.org/xpfe/nsGFXWidgets.html.
Added check for null mHitFrame in nsListControlFrame::MultipleSelection and
nsListControlFrame::SingleSelection.
1999-06-23 21:50:56 +00:00
peterl@netscape.com 3ad6e9c503 set display type for map to block 1999-06-22 19:20:42 +00:00
peterl@netscape.com 7b45ca80d2 use '-moz-fixed' font for pre hack instead of 'monospace' 1999-06-22 19:19:13 +00:00
kmcclusk@netscape.com 04288dc757 Numerous changes to support gfx-rendered form elements. 1999-06-21 20:41:56 +00:00
peterl@netscape.com 01e6d1461c added namespace definitions 1999-06-15 06:17:17 +00:00
buster@netscape.com 9a90457bbc added style for disabled text controls 1999-06-12 22:33:45 +00:00
pollmann@netscape.com c2cef6e894 bug 2105: Textarea no longer inherits text color from parent. 1999-06-11 19:15:20 +00:00
pollmann@netscape.com fce9ee850e bug 3720: <LABEL> background draws properly now. 1999-06-11 19:10:56 +00:00
karnaze@netscape.com 674f0cb477 removed background rules for table elements 1999-06-07 21:19:05 +00:00
kmcclusk@netscape.com 1fa3754407 fixes for bugs #5809, #5852, #6828, #6973.
Added a new test16.html sample to test gfx-rendered widgets to viewer.
Added support for test17.html sample to test printing.
1999-05-27 21:17:10 +00:00
karnaze@netscape.com 5848571fa7 support for css padding in table cells 1999-05-18 05:18:16 +00:00
kmcclusk@netscape.com 1de06248dd bug #994 Major rework of nsListboxControlFrame to support option groups. Modified ua.css
optgroup > option rule to use padding to offset the option group's options.
1999-05-17 22:36:08 +00:00
evaughan@netscape.com 4a53848f65 Fixed pseudoclass hack to actually use active, hover, focus pseudoclasses. 1999-05-13 01:35:16 +00:00
kmcclusk@netscape.com 80e52903d4 bug #3547- Modified nsFileControlFrame.cpp to call nsFormFrame::AddFormControlFrame.
bug #5589. Selection area is now calculated using the inherited Reflow rather
than using the calculations used for the native listbox control.
Fixed varous other rendering bugs related to frame-based listboxes.
bug #2797. GetSize is no longer needed in nsListControlFrame and it has been removed.
Fixed frame-based combobox nsComboboxFrame so that will set it's label to the
first option in the drop-down list if a default value has not been specified.
Added optgroup style rules to ua.css. Opt groups now render, but there are remaining
problems with selection.
Modified nsButtonControlFrame::Reflow to call nsFormFrame::AddFormControlFrame.
This fixes a bug where Gfx-rendered submit button's were not working.
Refactored code in nsListControlFrame in preparation for supporting option groups.
Refactored selection code into SingleSelect and MultiSelect paths.
Removed unused code in nsListControlFrame.
Removed mSelectedFrame member variable. It is no longer needed.
Fixed nsListControlFrame::SetProperty so that it will toggle the selection in a
single select listbox.
1999-05-07 20:30:16 +00:00
kipp@netscape.com 0a99d20841 Make hidden form elements invisible 1999-05-03 20:49:06 +00:00
peterl@netscape.com 9acbd9d6ea fixed image link border colors 1999-04-28 00:54:49 +00:00
kipp@netscape.com ef0fc468f3 Added :-moz-letter-frame 1999-04-27 22:14:06 +00:00
karnaze@netscape.com ff0a704884 <frame> or <iframe> without web shell gets background color from ua.css 1999-04-27 21:05:32 +00:00
kipp@netscape.com d31e4d00ef Fixed so that hidden form elements have no border 1999-04-23 20:16:40 +00:00
kipp@netscape.com 1058ae0ba1 Added -moz-line-frame for first-line support 1999-04-20 00:29:48 +00:00
troy@netscape.com 22c313ffe5 Commented out rules for img:-moz-text, which aren't what I want 1999-04-14 00:02:54 +00:00
kmcclusk@netscape.com 6d0ccb0c87 Enabled frame-based comboboxes when widget rendering mode is gfx.
Major changes to nsComboboxControlFrame:
Removed commented out code + nsIPluggableEventListener references.
Implemented nsComboboxControlFrame::GetNamesValues
Implemented nsComboboxControlFrame::SetProperty GetProperty methods
Fixed references to previously freed memory in nsComboboxControlFrame::ReResolveStyleContext
Modified ua.css style rules for dropdown-visible, drodown-hidden to have -moz- prefix.
Added -moz-dropdown-btn-out and -moz-dropdown-btn-pressed, -moz-dropdown-list rules.
Modified nsListControlFrame.cpp to calculate the width of the dropdown list for combo boxes correctly
Added nsListControlFrame::GetProperty and SetProperty methods.
Modified nsCSSFrameConstructor::ConstructSelectFrame to setup combobox.
1999-04-12 22:14:31 +00:00
karnaze@netscape.com 09cca55379 remove margin-right from <input type=text>, <input type=password>, assists with bug1968 1999-04-09 20:56:13 +00:00
troy@netscape.com 5f9e80d1aa Added rules for Q tag 1999-04-05 02:56:37 +00:00
vidur@netscape.com 5783ab9995 Added epilog and prolog to document. Added processing instructions and CDATASections for XML. Completed document Node methods. 1999-03-31 20:49:25 +00:00
kipp@netscape.com 3b31dae8f8 Added some attribute selectors to make pre wrap, cols and width work 1999-03-31 04:13:55 +00:00
peterl@netscape.com 36fed5f572 fixed img in link border color 1999-03-28 04:46:40 +00:00
peterl@netscape.com 56c6d93f2e moved img alt-text sizing into text pseudo-element 1999-03-28 04:29:09 +00:00
kipp@netscape.com 6dd26dea18 Some tweaks for better compatability 1999-03-26 00:42:39 +00:00
troy@netscape.com 8134223477 Changed ILAYER from 'position:absolute' to 'position:relative' 1999-03-24 03:46:09 +00:00
kmcclusk@netscape.com 6fe29f4620 Various modifications/fixes/cleanup for frame-based listboxes.
Set display type to block for option elements in ua.css.
Enable frame-based listboxes when widget render mode is gfx.
1999-03-22 21:32:12 +00:00
peterl@netscape.com a657020f41 Fixed table background inheritance, bug #1355
Checkin approved by chofmann
1999-03-16 22:33:29 +00:00
karnaze@netscape.com f5e3a7b436 removed code to set margins on radio buttons and checkboxes. It is now done using attribute selectors in ua.css. 1999-03-14 17:39:58 +00:00
evaughan@netscape.com 01a451f6c4 Fixed disabled bug on buttons. 1999-03-12 23:47:52 +00:00
vidur@netscape.com 09fe21ecc3 Put back in changes blown away by evaughn 1999-03-11 08:59:37 +00:00
nisheeth@netscape.com 355454b235 - changing ua.css to add style rules for the 'parsererror' and 'sourcetext' elements.
- added eHTMLTag_parsererror, eHTMLTag_sourcetext to the set of HTML tags.
- These tags are used within XML documents to show errors from expat.
1999-03-11 05:26:53 +00:00
evaughan@netscape.com 526967b52b 1) Implemented regular button and html4 button with a button renderer.
2) Fixed ProgressMeter to update correctly when attributes change
3) Fixed sample8.html so that it does not over ride the borders of the HTML4 button this
   messed up the active, hover, and disabled states.
1999-03-06 19:43:13 +00:00
kipp@netscape.com 31edaa696b Cleaned up margins hackery and made things use css instead of evil code in the block layout code 1999-03-05 04:18:58 +00:00
kmcclusk@netscape.com 73485522a4 gfx vs native widget rendering can now be specified in the viewer at run-time.
Added methods to GetWidgetRenderingMode and SetWidgetRenderingMode in nsPresContext
Removed NS_GFX_RENDER_FORM_ELEMENTS define, now it uses the GetWidgetRenderingMode
method on the rendering context.
Resurrected Rod's listbox frame-based widget code.
Added -moz-option-selected pseudo attribute to control the appearance of selected items for the listbox frame-based widget.
Added a style rule with attribute selector for -moz-option-selected to the ua.css style sheet.
Modifed nsView::SetVFlags to do a bitwise or instead of bitwise and to set flags.
Modified nsView::HandleEvent to compare mVFlags with NS_VIEW_FLAG_DONT_CHECK_CHILDREN
1999-03-02 22:43:26 +00:00
vidur@netscape.com 2fb8478b86 Fixed MAP elements to conform to HTML 4.0. Hooked up attribute changes for MAP, AREA and ANCHOR elements. Added RECONSTRUCT_ALL as a style hint for attribute changes. Modified nsCSSFrameConstructor's ReconstructFrame to only reconstruct the document element hierarchy. 1999-03-01 16:57:35 +00:00
troy@netscape.com d8d18dc5e1 Added pseudo style for 'page' element 1999-02-19 00:53:09 +00:00
kmcclusk@netscape.com 5d88feff1d changed pseudo styles file-button, file-text to -moz-file-button -moz-file-text in ua.css
Adjusted nsHTMLAtoms to match.
1999-02-18 22:36:59 +00:00
kipp@netscape.com df91e677c2 Renamed bullet pseudo style 1999-02-18 22:20:19 +00:00
kmcclusk@netscape.com 51076c2025 Fixed call to ProbePseudoStyleContext in nsButtonControlFrame so it will compile
when NS_GFX_RENDER_FORM_ELEMENTS is defined.
Added checks to nsFileControlFrame::Reflow to make sure the pseudo styles actually
could be loaded. If they can't be loaded it uses the file upload elements style.
Changed file-buttonstyle to file-button and file-textstyle to file-text in ua.css
1999-02-18 22:07:23 +00:00
kmcclusk@netscape.com aa254ce0cc Added pseudo styles for file input element buttons and text fields to control their
appearance during printing.
Now returns value of file upload element in nsHTMLInputElement::GetValue.
Added :file-textstyle and :file-buttonstyle pseudo style's to ua.css.
Modified nsButtonControlFrame::PaintButton to accept a rectangle describing the
position and size of the button to paint.
Modified nsFileControlFrame::Paint to resolve :file-buttonstyle and :file-textstyle to
paint the file upload's button and text field using settings in ua.css
Added nsFileControlFrame::HasWidget utility method.
Added nsFormControlHelper::GetInputElementValue to get the current value of an input element
from the DOM.
Modified nsTextControlFrame::GetProperty to use nsFormControlHelper::GetInputElementValue
Modified nsTextControlFrame::PaintTextControl to accept a rectangle describing the position
and size of the text control to paint.
Modified nsTextControl::PaintTextControlBackground to include a rectangle describing the
position and size of the text control background to paint.
1999-02-18 00:13:39 +00:00