Commit Graph

1874 Commits

Author SHA1 Message Date
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
roc+%cs.cmu.edu
c43b1f1f74 Bug 113232. Support translucent chrome. Relanding, fingers crossed. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@140762 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-06 02:49:40 +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
darin%netscape.com
418b92e9d5 backing out roc+%cs.cmu.edu check-in for bug 113232
git-svn-id: svn://10.0.0.236/trunk@140172 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 00:07:00 +00:00
bmlk%gmx.de
64e4c7b1b5 dont clip composite borders, bug 197086 r/sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@140137 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 10:17:25 +00:00
roc+%cs.cmu.edu
6f0e8cad25 Bug 113232. Make 'background:transparent' work on top-level XUL windows. r=pavlov,kmcclusk,bzbarsky,sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@140132 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 04:57:22 +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
bmlk%gmx.de
f08a661ed7 clip the border at the dirty rectangle, bug 86249 r+sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@139278 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-11 15:15:08 +00:00
jkeiser%netscape.com
719fca7fb1 Fix ISINDEX crash (bug 191974), r=aaronl@netscape.com, sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@139259 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-11 06:53:49 +00:00
dbaron%dbaron.org
3b86a016bb Handle inline style changes by creating new style rules to wrap the modified nsCSSDeclarations, thus moving towards style rule immutability and away from property-based change hints. Patch from Boris Zbarsky <bzbarsky@mit.edu>. r=dbaron sr=roc b=171830
git-svn-id: svn://10.0.0.236/trunk@139034 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:07:22 +00:00
paper%animecity.nu
fd2e96c27b Bug 194108 Don't PaintBackgroundColor when tiled image is opaque and fully covering. r=caillon sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@138993 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 23:34:48 +00:00
peterv%netscape.com
c96c6fa64f Fix for bug 195153 (Remove bogus 'extern' decls from NS_New* functions.). Patch by jst, r=sicking, sr=peterv.
git-svn-id: svn://10.0.0.236/trunk@138957 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 15:08:41 +00:00
mkaply%us.ibm.com
212bcddeb5 OS/2 bustage
We have a compiler optimization problem here.
For now I am turning off optimization for this directory for OS/2 only because we haven't had a working OS/2 build in a few days.
We'll look at the real problem today.


git-svn-id: svn://10.0.0.236/trunk@138335 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-24 14:24:40 +00:00
bryner%netscape.com
194ae549df Keep a reference to the style context for the lifetime of AttributeChanged(), so it's not deleted out from under us when the frame is destroyed. Fixes crasher bug 194584. r/sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@138308 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 23:02:26 +00:00
dbaron%dbaron.org
dc1497f24d Make ProbePseudoStyleFor return null whenever :before and :after aren't displayed so that we don't try to reframe constantly in certain cases, preventing link clicking from working. b=188525 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138300 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 17:28:25 +00:00
bryner%netscape.com
1cdbcbdfb1 Fix some potentially uninitialized variables caused by my StyleContext checkin (bug 114713).
git-svn-id: svn://10.0.0.236/trunk@138265 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 04:03:49 +00:00
roc+%cs.cmu.edu
ad79d0e7da Bug 191938. 'Dont print backgrounds' by setting background to white. also clean up unused params and make background-attachment:fixed work in printing/printpreview. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138258 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 02:49:22 +00:00
roc+%cs.cmu.edu
20d65dce1c Bug 186754. Make sure scrolled elements honor the content hierarchy for z-index. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138255 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 02:03:43 +00:00
roc+%cs.cmu.edu
4a676c1821 Bug 189723. Fix valgrind warning on uninitialized value when GetPenMode isn't implemented. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138238 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 22:27:45 +00:00
roc+%cs.cmu.edu
a8c4342e53 Bug 192469. Reparent views for blocks-in-inlines regardless of why we created the view. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138233 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 21:37:55 +00:00
dbaron%dbaron.org
22283f6fd1 Replace nsIStyleSheet::AttributeAffectsStyle with nsIStyleRuleProcessor::HasAttributeDependentStyle. Strengthen the attribute optimization and apply it to HTML as well. b=163556 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138196 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 16:10:53 +00:00
dbaron%dbaron.org
864ea24cc7 Fix crash from over-releasing from bryner's changes yesterday. b=114713
git-svn-id: svn://10.0.0.236/trunk@138194 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:54:04 +00:00
bryner%netscape.com
ad101517a1 fixing more nebiros bustage, use .get() on nsRefPtr<nsStyleContext> when calling ::GetStyleData
git-svn-id: svn://10.0.0.236/trunk@138167 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 09:16:41 +00:00
bryner%netscape.com
c44337949a Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@138129 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 00:32:13 +00:00
bzbarsky%mit.edu
b993aac32b Make sure all caller have to pass in the "ignore 'print backgrounds'
preference" boolean.  Make block/inline _not_ ignore that pref.  Bug 191574,
r+sr=dbaron, a=asa


git-svn-id: svn://10.0.0.236/trunk@137266 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-01 23:54:32 +00:00
timeless%mozdev.org
f104e2ff56 Bug 156405 Tabbed browsing frequently crashes Mozilla - Trunk M130A [@ nsXULWindow::ContentShellAdded]
patch by bsmedberg@covad.net r=roc+moz, sr=roc+moz, a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@137216 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-31 21:31:48 +00:00
karnaze%netscape.com
8ece4a7c7a bug 179683 - implement printing of fixed positioned elemements, clean up ViewportFrame. sr=roc, r=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@136686 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-20 18:04:34 +00:00
rbs%maths.uq.edu.au
534041f379 In certain dynamic updates, frames scheduled to be reprocessed could be destroyed in a ripple effect. Since this was a root problem, the patch fixes the crasher bugs 123049, 133219 154797 187671 187890, r=bzbarsky, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@136649 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-20 01:07:03 +00:00
karnaze%netscape.com
23adc41944 Added AdjustAbsoluteContainingBlock to get the first-in-flow of a positioned inline frame in galley mode as the absolute containing block. sr=bzbarsky, r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@136638 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-19 18:58:59 +00:00
caillon%returnzero.com
b9398c95d8 189533, background-position has low accuracy. Specifically, it was not allowing fractional percentages.
r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@136615 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-19 02:36:04 +00:00
caillon%returnzero.com
9eac0ede5b Fix build bustage. OS/2 and Sun Workshop won't do implicit type conversions (like .get() on an nsCOMPtr) while trying to match a template.
See also revision 3.188 of this file.


git-svn-id: svn://10.0.0.236/trunk@136508 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-17 12:16:36 +00:00
caillon%returnzero.com
4e9b13ef00 Bug 14777 - Give inline background image painting a rhyme and reason to how it works. Implement CSS3 proposal (-moz-)background-inline-policy.
r+sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@136499 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-17 09:33:52 +00:00
dbaron%dbaron.org
d88b1da3bc Fix misplaced closing } from patch in bug 188734. b=189292
git-svn-id: svn://10.0.0.236/trunk@136413 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-16 13:59:52 +00:00
bzbarsky%mit.edu
291ec6eb41 Move GetFirstInFlow/GetLastInFlow up to nsIFrame. Bug 187117, r=roc+moz, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@136402 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-16 02:59:04 +00:00
dbaron%dbaron.org
eeb782e6c5 Fix ContentStatesChanged so it correctly handles combinations of two elements where one is changing from 'display:none' to needing frames. b=188734 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@136277 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-14 01:29:34 +00:00
bernd.mielke%snafu.de
1b0deca181 fix the color code to make tables in quirks mode on white background to look outset bug 14090 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@136215 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-12 12:11:05 +00:00
bryner%netscape.com
6278746fdf Phase 1 of style context deCOMtamination (bug 114713). Remove all dependencies on nsIStyleContext from outside of content and layout. Make nsIFrame::GetStyleData be a non-inline virtual function when called from outside of layout, since the nsStyleContext implementation won't be available to those callers. r=dbaron, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@136056 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 06:49:07 +00:00
dbaron%dbaron.org
c278517282 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136010 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 21:19:10 +00:00
bzbarsky%mit.edu
8d092fcca8 ReResolveStyleContext needs to deal with :before/:after pseudos correctly. Bug
126072, r=dbaron, sr=roc+moz.  Also fixes bug 141259 (incorrect warnings about
style tree integrity).


git-svn-id: svn://10.0.0.236/trunk@135852 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-05 05:05:17 +00:00
bzbarsky%mit.edu
ddf6bf65b0 Change the algorithm used to darken text when printing a tad to produce better
results.  Bug 141232, r/sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@135851 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-05 04:52:27 +00:00
bernd.mielke%snafu.de
01e1c41113 fix an uninitialized warning, bug 155539 patch by karnaze@netscape.com r=alexsavulov sr=kin
git-svn-id: svn://10.0.0.236/trunk@135845 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-04 10:49:50 +00:00
caillon%returnzero.com
6fa69e00be 186752 - Need one more null check, this time before CallQueryInterface. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@135660 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-28 00:03:33 +00:00
caillon%returnzero.com
0aaf7ffe86 Bug 186752 - Crash during background painting when there is no scrollable frame. Add a null check.
r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@135650 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-27 07:32:17 +00:00
caillon%returnzero.com
bd02488338 Bug 46814 - Fixed attachment background images should not be positioned underneath scrollbars, when positioning on a side which has scrollbars.
r=dbaron sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@135597 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 22:08:04 +00:00