6279 Commits

Author SHA1 Message Date
jim_nance%yahoo.com
55ae4a6a68 Fix for uninitialized variable
r=waterson


git-svn-id: svn://10.0.0.236/trunk@63411 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 19:07:35 +00:00
norris%netscape.com
09ff59d528 Fix a number of security bugs. (I can't see the numbers at home because
they have restricted visibility.)
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@63404 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 17:48:12 +00:00
rods%netscape.com
d9ce7addbc Fixed GetSelectedIndex so it gets it out of the pressate when there is no frame.
for PDT+ bug 32119, I am checking in the fix in on the Tip,
ducarroz will check it in on the branch
r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@63400 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 15:29:48 +00:00
rods%netscape.com
ddbfa3ac95 made sure "average" was initialized to zero
change the setting of the font from mFixedFont to mFont for textfields
b=18232,32254 r=sfraserfor 18232, self for 32254


git-svn-id: svn://10.0.0.236/trunk@63399 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 15:15:25 +00:00
rods%netscape.com
6d46d88a6d Added quotes around type="text"
changed the bottom margin for input type="text" from 1 to zero
b=18138, r=buster


git-svn-id: svn://10.0.0.236/trunk@63398 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 14:43:48 +00:00
rods%netscape.com
e9d2e2d814 Added aIsOutline to arg to RenderSize so it can do the right thing when
drawing outlines. Also got rounded outlines to work (not dashed)
Added #if for PaintOuline to control whether it paints on the inside or outside
of the frame.
b=18579 r=dcone


git-svn-id: svn://10.0.0.236/trunk@63397 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 14:41:00 +00:00
rods%netscape.com
82ece3a6a1 Removed a lot of unneeded for for creating viewes for GfxList (experiment and ifdef'ed out)
Now uses GetOptionsContainer to get the frame container for adding options
needed for differences in List and GfxList
b=18895 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@63396 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 14:25:02 +00:00
rods%netscape.com
1310a72d4b Removed GetScreenHeight and using the one in nsFormControlFrame
b=25774 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@63395 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 14:20:03 +00:00
rods%netscape.com
425572a3d4 Added adaptive sizing for dropdown with small screen sizes
The setting of the cached available size only happens when it is not unconstrained
Added GetOptionsContainer method
Fixed minor problem in GetScrollableView (not actually passing back the frame)
Added the Flushing of content on arrow keys
b=31987,25774 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@63394 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 14:17:34 +00:00
rods%netscape.com
038a069997 Added adaptive sizing for dropdown with small screen sizes
Added reflow optimization
Added GetOptionsContainer method
b=31987 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@63393 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 14:17:32 +00:00
rods%netscape.com
76578e3157 Added method to get the container frame for adding/removing option frames
needed for the differences in ListControlFrame sn GfxListControlFrame
b=18895 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@63392 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 14:17:30 +00:00
rods%netscape.com
7dc235b13a Moved GetScreenHeight from Combobox frame to here. duplicated the SkipRelfow method to
some rework, and I can if def it in and out
b=18895 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@63391 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 13:45:30 +00:00
jst%netscape.com
1045f00b64 Fixing what (at least used to) crashes #28489. r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@63359 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 02:10:28 +00:00
karnaze%netscape.com
056416500b new regression tests not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@63341 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 00:33:19 +00:00
karnaze%netscape.com
f97132fe14 Stop using network images in regression tests. Does not affect the build.
git-svn-id: svn://10.0.0.236/trunk@63297 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 16:34:21 +00:00
karnaze%netscape.com
54703a9d8f Stopped using network images for regression tests. Does not affect the build.
git-svn-id: svn://10.0.0.236/trunk@63291 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 13:54:49 +00:00
jst%netscape.com
96aefc9b5d Landing changes Vidur made while the tree was closed for beta1 work, here's a list of the changes. r=me
[1] Cutting down the size of content. Made nsIJSScriptObject inherit from nsIScriptObjectOwner
[2] Cutting down the size of content. Made nsITextContent inherit from nsIContent.
[3] Cutting down the size of content. Moved implementation of nsIDOMReceiver to nsListenerManager. This is not true aggregation since it isn't transitive, but it's OK for now. It will be necessary for nsListenerManager to have a reference to its content in the future anyway, so the transitivity could be done.

dom/public/nsDOMPropEnums.h,v  - bug 12559
dom/public/nsIJSScriptObject.h,v - [1]
dom/public/html/MANIFEST,v - bug 12559
dom/public/html/Makefile.in,v - bug 12559
dom/public/html/makefile.win,v -  bug 12559
dom/public/html/nsIDOMHTMLInputElement.h,v - bug 17544
dom/public/idl/html/HTMLAnchorElement.idl,v - bug 12559
dom/public/idl/html/HTMLAreaElement.idl,v - bug 12559
dom/public/idl/html/HTMLInputElement.idl,v - bug 17544
dom/src/base/nsGlobalWindow.cpp,v - bug 30700
dom/src/base/nsGlobalWindow.h,v - [1]
dom/src/base/nsLocation.cpp,v - [1]
dom/src/html/nsJSHTMLAnchorElement.cpp,v - bug 12559
dom/src/html/nsJSHTMLAreaElement.cpp,v - bug 12559
dom/src/html/nsJSHTMLInputElement.cpp,v - bug 17544
layout/base/public/nsIDocument.h,v - bug 27953
layout/base/public/nsITextContent.h,v - [2]
layout/base/src/nsCommentNode.cpp,v - [2]
layout/base/src/nsDocument.cpp,v - bug 27953
layout/base/src/nsDocument.h,v - bug 27953
layout/base/src/nsDocumentViewer.cpp,v - bug 27953
layout/base/src/nsGenericDOMDataNode.cpp,v - [3]
layout/base/src/nsGenericDOMDataNode.h,v - [3]
layout/base/src/nsGenericElement.cpp,v - [3]
layout/base/src/nsGenericElement.h,v - [3]
layout/base/src/nsNameSpaceManager.cpp,v - bug 7834
layout/base/src/nsStyleContext.cpp,v - outline property shouldn't reflow
layout/base/src/nsTextNode.cpp,v - [2]
layout/events/src/nsEventListenerManager.cpp,v - [3]
layout/events/src/nsEventListenerManager.h,v - [3]
layout/html/base/src/nsGfxScrollFrame.cpp,v - nsString->nsAutoString
layout/html/content/src/nsAttributeContent.cpp,v - [2]
layout/html/content/src/nsHTMLAnchorElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLAppletElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLAreaElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBRElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBaseElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBaseFontElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBodyElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLButtonElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDListElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDelElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDirectoryElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDivElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLEmbedElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFieldSetElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFontElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFormElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFrameElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFrameSetElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHRElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHeadElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHeadingElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHtmlElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLIFrameElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLImageElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLInputElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLInsElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLIsIndexElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLIElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLabelElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLayerElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLegendElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLinkElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLMapElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLMenuElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLMetaElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLModElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLOListElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLObjectElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLOptGroupElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLOptionElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLParagraphElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLParamElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLPreElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLQuoteElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLScriptElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLSelectElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLSpacerElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLSpanElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLStyleElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableCaptionElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableCellElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableColElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableColGroupElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableRowElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableSectionElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTextAreaElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTitleElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLUListElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLWBRElement.cpp,v - [1][3]
layout/html/document/src/nsHTMLDocument.cpp,v - bug 27953
layout/html/document/src/nsHTMLDocument.h,v - bug 27953
layout/xml/content/src/nsXMLCDATASection.cpp,v - [1][2]
layout/xml/content/src/nsXMLDocumentType.cpp,v - [1][2]
layout/xml/content/src/nsXMLElement.h,v - [1][2]
layout/xml/content/src/nsXMLEntity.cpp,v - [1][2]
layout/xml/content/src/nsXMLNotation.cpp,v - [1][2]
layout/xml/content/src/nsXMLProcessingInstruction.cpp,v - [1][2]
layout/xul/base/src/nsBoxFrame.cpp,v - nsString->nsAutoString
layout/xul/base/src/nsSliderFrame.cpp,v - nsString->nsAutoString
netwerk/protocol/http/src/nsHTTPRequest.cpp,v - nsString->nsAutoString
rdf/content/src/nsXULDocument.cpp,v - bug 27953
rdf/content/src/nsXULDocument.h,v - bug 27953
rdf/content/src/nsXULElement.h,v - [1]
xpcom/base/IIDS.h,v  - bug 12559


git-svn-id: svn://10.0.0.236/trunk@63290 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 13:27:00 +00:00
pierre%netscape.com
c84deb6d8c Fix 32199 (visibility:collapse is not being interpreted as hidden on block and inline level elements) and parts of 21701 (misuse of style attr mVisible).
In the following files, replacing disp->mVisible with disp->IsVisible() is a BUG FIX: nsBlockFrame, nsBulletFrame, nsHRFrame, nsHTMLContainerFrame, nsImageFrame, nsTextFrame.

In all the other files, replacing disp->mVisible with disp->IsVisible() or disp->IsVisibleOrCollapsed() is merely a SYNTACTICAL CHANGE. The respective owners will later review the use of IsVisibleOrCollapsed() and in some cases replace it with IsVisible(). See bug 21701.


git-svn-id: svn://10.0.0.236/trunk@63284 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 10:15:13 +00:00
troy%netscape.com
c35e4c1e39 b=31451 Made sure we only set the NS_FRAME_OUT_OF_FLOW frame state bit
if the frame is actually out of the flow


git-svn-id: svn://10.0.0.236/trunk@63253 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 05:10:37 +00:00
buster%netscape.com
bd79e065d4 fixed VerifyReflow, an important debugging tool for the layout team
no bug number
r=troy


git-svn-id: svn://10.0.0.236/trunk@63232 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 01:50:54 +00:00
akkana%netscape.com
eed43f5587 nsCOMPtr tainting problem -- need to include nsIParserService.h
git-svn-id: svn://10.0.0.236/trunk@63222 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 01:12:11 +00:00
akkana%netscape.com
910ccafcb4 29032, 29239: linebreaks in <pre> and in plaintext mail.
19137: preserve style of copied text.          r=mjudge


git-svn-id: svn://10.0.0.236/trunk@63208 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 00:08:27 +00:00
karnaze%netscape.com
5083da9d50 new regression tests not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@63205 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 23:55:05 +00:00
karnaze%netscape.com
45de05a1fb bug 7112 - do not convert align=center on table into text-align=center, r=kmcclusk.
git-svn-id: svn://10.0.0.236/trunk@63204 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 23:52:21 +00:00
karnaze%netscape.com
0f7fbb851d bug 27993, 30332 - treat rowspan/colspan=0 like Nav in quirks mode rather than according to html 4.
git-svn-id: svn://10.0.0.236/trunk@63203 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 23:50:57 +00:00
cmanske%netscape.com
5ab9b7f9df Added support for table selection and removed nsIDOMSelectionListener code no longer needed. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@63201 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 23:45:39 +00:00
attinasi%netscape.com
d039db6c10 Fixed build breakage - local API change snuck in to my checkin.
git-svn-id: svn://10.0.0.236/trunk@63198 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 23:37:00 +00:00
attinasi%netscape.com
39a3c92b6b Removed code that was causing a reframe when the class of an element changed. This is unnecessary and causes performance problems (reframes are expensive). b=21225 r=dcone,pierre
git-svn-id: svn://10.0.0.236/trunk@63187 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 23:04:21 +00:00
attinasi%netscape.com
7816e0550c Put an Invalidate call in ::Reflow when the image has changed - image was not repainting before. b=21225 r=buster
git-svn-id: svn://10.0.0.236/trunk@63180 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 23:01:03 +00:00
attinasi%netscape.com
71ee99d1fa Fixed a problem where loading an image into second browser window was not updating the dimensions. Also added temporary code to put the image type in the title, even though the image type is not really accurate yet. b=24478 r=dcone
git-svn-id: svn://10.0.0.236/trunk@63177 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 22:58:12 +00:00
rods%netscape.com
f4df672a66 I had the GetDefaultChecked and GetChecked methods reversed.
b=31009 r=kmclusk


git-svn-id: svn://10.0.0.236/trunk@63176 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 22:57:08 +00:00
attinasi%netscape.com
9519b13665 Removed NavQuirk where FONT tags were ignored if an element was explicitly sized, since we couldn't know if it was explicitly sized by an *implicit* style rule or by another FONT tag. b=25810 r=dcone
git-svn-id: svn://10.0.0.236/trunk@63172 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 22:54:36 +00:00
pierre%netscape.com
cfc46042f9 #11859 "Loading remote stylesheet in editor fails". LoadAgentSheet() loads the page asynchronously if an observer if provided.
git-svn-id: svn://10.0.0.236/trunk@63156 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 11:44:00 +00:00
karnaze%netscape.com
b4e649d32b new regression test not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@63126 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 02:56:12 +00:00
karnaze%netscape.com
cf5fcc4348 bug 30273 - removing the last remaining cell in a row caused the cell map to remove the row during an incremental reflow. r=attinasi.
git-svn-id: svn://10.0.0.236/trunk@63123 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 02:21:43 +00:00
dbaron%fas.harvard.edu
a915f864a2 Fix a leak of a device context. r=dcone@netscape.com
git-svn-id: svn://10.0.0.236/trunk@63114 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 01:21:58 +00:00
dbaron%fas.harvard.edu
d017095281 1) Make PRE line layout backwards compatible in quirks mode (related to bug 26998).
2) Don't use strings when I can use atoms.
3) Fix bug 28472 by correcting error in earlier checkin.
r=buster@netscape.com


git-svn-id: svn://10.0.0.236/trunk@63109 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 01:14:57 +00:00
rods%netscape.com
65ce3a5b21 added #include for nsIContent.h to fix bustage
git-svn-id: svn://10.0.0.236/trunk@63056 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 16:45:01 +00:00
rods%netscape.com
b47bf11900 minor change so extended keyboard select works correctly
r=dcone


git-svn-id: svn://10.0.0.236/trunk@63055 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 15:56:26 +00:00
rods%netscape.com
1b47027ebe factored out a GetScrolableView method, implemented extended selection for drag select and shift->up/down keys
added page up and down support, but it isn't supported by nsScrollFrame (works for Gfx)
should be generating the coorect DOM selection events now
r=dcone, b=14771, 30463


git-svn-id: svn://10.0.0.236/trunk@63054 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 15:55:30 +00:00
rods%netscape.com
3747feefc2 turning off debug #defines
git-svn-id: svn://10.0.0.236/trunk@63053 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 15:47:11 +00:00
rods%netscape.com
30ed3f06f4 removed ifdef's and replaceed them with if/then/else for GFX Lists and Dropdowns,
now they can be turned on with a boolean instead. This will help with debugging later
r=dcone, b=18895


git-svn-id: svn://10.0.0.236/trunk@63052 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 15:45:29 +00:00
troy%netscape.com
00091b65e3 b=24343 r=karnaze@netscape.com Changes so we properly lay out after changing
the font using the pref UI. Block and table code changed to handle
eReflowReason_StyleChange


git-svn-id: svn://10.0.0.236/trunk@63049 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 15:16:03 +00:00
rods%netscape.com
777c1be6e2 preparing it for prime-time, in the build, but not being used.
b=18895, r=dcone


git-svn-id: svn://10.0.0.236/trunk@63046 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 15:08:54 +00:00
dveditz%netscape.com
51ca5d7259 fixing VC5 build (bug 31868)
git-svn-id: svn://10.0.0.236/trunk@63015 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 06:22:09 +00:00
karnaze%netscape.com
f325f1e22d fix warnings. submitted by jeroen@vangelderen.org, r=karnaze
git-svn-id: svn://10.0.0.236/trunk@63005 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 04:50:25 +00:00
troy%netscape.com
a0f2ac4e06 b=21903. Fixes a crash when absolutely positioning a form element. The
problem was no space manager was getting created for the form's frame


git-svn-id: svn://10.0.0.236/trunk@63004 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 04:38:08 +00:00
hyatt%netscape.com
a19b6cd72b Landing new progressmeter.
git-svn-id: svn://10.0.0.236/trunk@62993 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 03:16:43 +00:00
blizzard%redhat.com
38572a5d11 fix for bug #18186. remove work around in layout code and properly implement nsIFile::GetLastMofificationDate() on unix. r=vidur,jst,dougt a=waterson
git-svn-id: svn://10.0.0.236/trunk@62992 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 03:08:28 +00:00
karnaze%netscape.com
8b1782c955 new regression tests not affecting the build
git-svn-id: svn://10.0.0.236/trunk@62982 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 02:11:44 +00:00