877 Commits

Author SHA1 Message Date
jst%mozilla.jstenback.com
ef67a47aab Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org.
git-svn-id: svn://10.0.0.236/trunk@147354 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 04:18:26 +00:00
uid502
8080dd532b Bug 217201. Make nsTextControlFrame::InitEditor() happen outside of reflow, to prevent content notification flushes and reentrancy. r+rs=dbaron
git-svn-id: svn://10.0.0.236/trunk@147060 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-19 15:20:00 +00:00
bryner%brianryner.com
dbbc84bf94 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@146620 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-07 22:37:27 +00:00
caillon%returnzero.com
a1e93058b8 214844 relatively positioned block w/ overflow:auto should be absolute pos. containing block
Patch by Mats Palmgren <mats.palmgren@bredband.net>
r+sr=dbaron@dbaron.org
a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@146037 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-15 04:43:09 +00:00
caillon%returnzero.com
378752c58c Bug 215842 - JavaScript resets fieldset absolute positioning.
Patch by Boris Zbarsky <bzbarsky@mit.edu>
r+sr=dbaron@dbaron.org
a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@146028 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-15 00:04:40 +00:00
bzbarsky%mit.edu
46cae71484 Backing out last checkin, since a= is needed.
git-svn-id: svn://10.0.0.236/trunk@145828 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-09 22:19:49 +00:00
bzbarsky%mit.edu
789730182e Fix bug 214844 -- rel pos blocks with overflow set should be containing blocks
for abs pos elements.  Patch by mats.palmgren@bredband.net (Mats Palmgren),
r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@145827 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-09 21:41:39 +00:00
rbs%maths.uq.edu.au
e320553e23 Sync the handling of stretchy MathML frames with the new ::-moz notation, b=214989, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@145578 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-05 02:07:14 +00:00
caillon%returnzero.com
c8612ff038 Bug 38370.
Allow color of an HR element to be changed.
Make HR be a block element in quirks mode instead of the hacky inline we were previously using (standards mode already had it as a block).
Patch by Ian Hickson <ian@hixie.ch> with minor modifications by me.
r+sr=bzbarsky@mit.edu


git-svn-id: svn://10.0.0.236/trunk@145375 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 08:13:07 +00:00
bzbarsky%mit.edu
82c14d79dd DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@145289 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:25:13 +00:00
dbaron%dbaron.org
2d08b120f2 Ensure that NS_FRAME_HAS_CHILD_WITH_VIEW is set correctly when something has a view and is inside a float inside the block part of a block-inside-inline split. b=213781 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@145210 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-25 22:04:00 +00:00
mkaply%us.ibm.com
436d959eac rs=leaf
Remove XP_OS2_VACPP from the tree


git-svn-id: svn://10.0.0.236/trunk@145027 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-21 18:53:43 +00:00
dbradley%netscape.com
27c389d7e2 Bug 179089 - crash in selection stuff loading a newsgroup message [@JS_GetPrivate] (Refactors and address release of null pointer). r=caillon, sr=jst
git-svn-id: svn://10.0.0.236/trunk@144826 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 14:28:59 +00:00
bzbarsky%mit.edu
5a36af3d0a Backing out part of patch for bug 211128, since it regressed all sorts of
XBL-ish stuff.  r=stuff-is-broken sr=jag for the backout.


git-svn-id: svn://10.0.0.236/trunk@144814 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 05:35:09 +00:00
bzbarsky%mit.edu
714fcc154e Make it possible for overflow:auto/overflow:scroll frames to have
::before/::after content.  Bug 212145, r+sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@144755 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 23:19:12 +00:00
bzbarsky%mit.edu
c8ff7820a4 Make XBL anonymous content get its base URI from the XBL document (the binding
URI) instead of from the document of the bound element.  This way relative URIs
in a binding are always relative to the binding.  Bug 211128, r=caillon, sr=jst


git-svn-id: svn://10.0.0.236/trunk@144753 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 23:06:26 +00:00
dbaron%dbaron.org
593f58592d Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144735 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 21:16:12 +00:00
timeless%mozdev.org
fab52a77e7 Bug 212346 nsCSSFrameConstructor.cpp:4182: warning: unused variable `class nsIView * listView'
r=bz sr=bz


git-svn-id: svn://10.0.0.236/trunk@144725 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 20:07:21 +00:00
roc+%cs.cmu.edu
44ae5a148e Ongoing deCOMtamination. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144475 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-05 14:36:03 +00:00
dbaron%dbaron.org
6c10353243 Fix mats's review comment as well. b=210873 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144308 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-30 21:55:35 +00:00
dbaron%dbaron.org
af97e3f0b8 Ensure relatively positioned floats act as containing block for absolutely positioned elements by using (and adding a parameter to) nsCSSFrameConstructor::ConstructBlock. Remove ProcessBlockChildren, which no longer needs to be separate from ProcessChildren. b=210873 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144304 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-30 21:48:07 +00:00
bsmedberg%covad.net
03384bfad0 Bug 210337 - Spring cleaning of unused XPCOM code and callers r/sr=alecf/bz
git-svn-id: svn://10.0.0.236/trunk@144063 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 20:31:43 +00:00
dbaron%dbaron.org
e9d2634474 Fixing DEBUG-only bustage.
git-svn-id: svn://10.0.0.236/trunk@143965 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 01:05:04 +00:00
dbaron%dbaron.org
80187c571f Remove |aPresContext| and |aPresShell| parameters from |nsIFrameManager| methods. b=208190 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143961 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:52:58 +00:00
dbaron%dbaron.org
519cf3b3d3 DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@143960 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:44:01 +00:00
dbaron%dbaron.org
e5b5aaaee2 Handle state and attribute changes on elements without frames more efficiently, and keep the undisplayed map up to date. b=209733 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143888 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 21:54:51 +00:00
dbaron%dbaron.org
906d582953 Make CSSStyleRuleImpl immutable by changing mutation code (including some merging of code between nsDOMCSSAttributeDeclaration and DOMCSSDeclarationImpl) so that it creates a new rule for the modified declaration. Change StyleRuleChanged notification signatures, and change pres shell's handling of style rule change, addition, and removal to just do reresolution. Remove fine-grained ways of clearing style data. Change PeekStyleData so it doesn't do more work than it needs to, and can be relied on not to access rules that no longer match any content. b=188803 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143831 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 01:59:57 +00:00
caillon%returnzero.com
0a6d1ae509 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
dbaron%dbaron.org
67302a0e07 Remove code that is not needed anymore (due to bug 141054) since the primary frame always contains the :before and :after frames. b=208870 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143537 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 22:11:16 +00:00
scott%scott-macgregor.org
73a63a10b5 Bug #201891 --> lazily instantiate CSSFrameConstructor::gXBLService in order to break a weird cycle
with the component manager that can cause two instances of the xbl service to be created.
r/sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@143225 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-03 04:23:56 +00:00
dbaron%dbaron.org
ae3f13f00e Remove nsIFrame::ContentStateChanged. b=207822 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@143158 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-01 20:18:53 +00:00
jaggernaut%netscape.com
fd04e5bb85 Bug 203960: Make bookmark groups replace existing tabs instead of appending. r=jkeiser, varga, adamlock, sr=jst, hewitt
git-svn-id: svn://10.0.0.236/trunk@143070 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-30 00:21:01 +00:00
roc+%cs.cmu.edu
4685a42d27 Bug 206156. When we find a block inside an inline, reparent any views inside the new anonymous block and trailing inlines if the initial inline run had a view. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@142737 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-22 01:40:16 +00:00
dbaron%dbaron.org
9aac1ef1b8 Make ContentInserted handle appending after an inline that was split because it contains a block. b=141019 Based on patch by kin@netscape.com. r+sr=roc a=asa
git-svn-id: svn://10.0.0.236/trunk@142662 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-20 20:49:27 +00:00
dbaron%dbaron.org
69da9d4a19 Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
git-svn-id: svn://10.0.0.236/trunk@142488 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:42:21 +00:00
dbaron%dbaron.org
d88c07597f Oops, wrong tree. Backing out.
git-svn-id: svn://10.0.0.236/trunk@142487 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:36:05 +00:00
dbaron%dbaron.org
85e28181ee Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
git-svn-id: svn://10.0.0.236/trunk@142486 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:32:08 +00:00
dbaron%dbaron.org
14904b0f8b Remove some code left over from old native form controls. b=205575 r+sr=roc a=asa
git-svn-id: svn://10.0.0.236/trunk@142464 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-14 22:36:33 +00:00
bzbarsky%mit.edu
d1f7fb48d5 Pass the content parent frame to ConstructTableFrame so the view that's created
goes in the right place in the z-ordering.  Bug 203086, r+sr=roc, a=asa


git-svn-id: svn://10.0.0.236/trunk@141838 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-26 01:08:35 +00:00
jst%netscape.com
4fac069d27 Fixing bug 199399. Eliminating the interfaces nsIXMLDocument now that it's not needed any more. r=peterv@netscape.com, sr=heikki@netscape.com
git-svn-id: svn://10.0.0.236/trunk@141626 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-22 21:57:25 +00:00
bzbarsky%mit.edu
9861b52663 Make sure that Init() failures for image frames don't mean no alt text. Also
fixes a crasher when reframing fixed-pos frames.

This change adds an assertion in ConstructHTMLFrame that InitAndRestoreFrame
should succeed (unless it returns NS_ERROR_FRAME_REPLACED).  This is an interim
change; eventually we want to bail out on errors, but there may be frame impls
that return errors in non-error conditions from Init() (eg nsFrameSetFrame did
that) and we're a little close to freeze.

Bug 202506, r=rbs, sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@141552 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 23:57:47 +00:00
bzbarsky%mit.edu
b51212ed63 Make nsCSSFrameConstructor::AppendFrames be smarter about looking for :after
pseudos.  Move some utility functions into nsLayoutUtils; simplify some places
that basically had copies of those functions.  Improves perf a bit in bug
145425 and its dependencies, r+sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@141541 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 23:06:40 +00:00
bzbarsky%mit.edu
5d0e5db7b2 Fix for annoying assert. Bug 202717, r+sr=rbs
git-svn-id: svn://10.0.0.236/trunk@141504 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 04:09:51 +00:00
bryner%netscape.com
2b86f1c62f Remove nsScrollFrame and frame constructor support for it. Remove dlldeps.cpp for layout, it's not necessary. Bug 201457, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@141023 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 08:26:42 +00:00
bryner%netscape.com
0c66a2052e Make --disable-xul work (bug 69995). We build enough XUL to support
scrollbars unconditionally, but can now leave out heavyweight widgets like
grid, listbox, and tree.  r=bzbarsky, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@141016 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:56:27 +00:00
roc+%cs.cmu.edu
d4ac9a5795 Bug 126263. Whack comboboxes/listboxes to use Gfx scrollbars. Also, make scrollbars attach their XBL content only when they become visible, to avoid pageload hit. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@140858 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:50:57 +00:00
bzbarsky%mit.edu
d2aa4a9be8 Fix crash bug 200774 -- placeholders for fixed or abs pos things need to have
block parents.  r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@140755 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-05 21:35:35 +00:00
bzbarsky%mit.edu
2fbc7d38bb Landing bug 83774 -- move image loading for <img>, <object>, <embed>, <input
type="image"> into the content nodes and out of nsImageFrame.  r=pavlov, sr=jst


git-svn-id: svn://10.0.0.236/trunk@139743 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 03:47:09 +00:00
bzbarsky%mit.edu
e13b131d86 Fix crash on having a <xul:listbox> in a plain XML document. Bug 197234,
r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@139696 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 21:18:26 +00:00
dougt%netscape.com
fed2927b2c Create a new xpcom obsolete library (and component library).
Moved nsFileSpec and related classes into this obsolete library.
  Moved nsRegistry and related libreg functionality into the obsolete library.

Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.

Combined the following DLLs (source -> dest)
  uriloader -> docshell
  shistory -> docshell
  jsurl -> jsdom
  gkview -> gklayout

Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer

Modifed the xpt_link tool so that you can specify a “only include” cid list that can mask CID’s that you are not interested in.

Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).

Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService

Bug 194240, r/sr = darin, alec.


git-svn-id: svn://10.0.0.236/trunk@139480 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 01:04:32 +00:00