372 Commits

Author SHA1 Message Date
alecf%netscape.com
bc74aa5083 fix for bug 199170, convert layout to use nsStaticAtom. sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@140556 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 04:51:07 +00:00
seawood%netscape.com
8480117132 Obsoleting xp_str.h:
* Move XP_IS_ macros into nsCRT.h & rename them to NS_IS_
* Make local XP_IS_ macros use the nsCRT ones
* Remove NOT_NULL defines
Bug #199920 r=alecf sr=bryner


git-svn-id: svn://10.0.0.236/trunk@140498 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 19:38:12 +00:00
alecf%netscape.com
f24ccb3da0 landing attempt #2 for 195262 - support for static atoms, and converting atoms over to UTF8 to reduce bloat - now without performance regressions!
sr=darin, r=dbaron


git-svn-id: svn://10.0.0.236/trunk@140260 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 18:55:59 +00:00
alecf%netscape.com
2a83f1b2d9 backout my static atom patch for now until I figure out the performance loss! :(
bug 195262


git-svn-id: svn://10.0.0.236/trunk@139962 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 20:13:08 +00:00
alecf%netscape.com
59c2bfe187 fix for bug 195262:
- convert atoms to UTF8 because 99% of the time, that is what they are used for
- add support for static atoms, where the strings are declared in a large const array and not copied into the heap
r=dbaron, sr=darin

this is an experimental landing - if there are performance issues, I will back it out.


git-svn-id: svn://10.0.0.236/trunk@139909 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 06:26:32 +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
sfraser%netscape.com
9f8ce2b396 Remove dependency on nsInlineFrame::kInlineFrameCID. r/sr=alecf. Bug 74803
git-svn-id: svn://10.0.0.236/trunk@138494 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-26 01:17:37 +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
dbaron%dbaron.org
18e9b2801c Reduce code size of atom lists by storing a table of strings and pointers to fill in. b=181383 r=alecf sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@138195 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:58:07 +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
rbs%maths.uq.edu.au
9ac83650e1 Make MathML handle the <semantics> tag implicitly (take 2), b=154931, r=dbaron, sr=roc, a=asa
git-svn-id: svn://10.0.0.236/trunk@137694 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-11 23:15:01 +00:00
rbs%maths.uq.edu.au
82722bc526 fix bad string usage, b=191529, r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@137342 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-04 01:08:36 +00:00
rbs%maths.uq.edu.au
593d0fea8e Rework the positioning functions of <mover>, <munder>, <munderover> to improve their behavior w.r.t italic and non-italics fonts. Also use some fuzzy arithmetic to mitigate roundoff errors that could cause accents to collide with their base, b=135940, r=bzbarsky, sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@136830 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-22 07:42:20 +00:00
rbs%maths.uq.edu.au
7b59480583 Make the caret appear properly on invisible MathML operators, b=188146, r+sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@136406 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-16 05:10:03 +00:00
rbs%maths.uq.edu.au
17d1f5f622 fix incorrect position of certain accents, b=188467, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@136190 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-11 03:04:30 +00:00
dbaron%dbaron.org
a569c670f5 Replace computation of max-element-size (height and width) with max-element-width alone, since the max-element-height is practically unused and not meaningful for layout. b=186953 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@136064 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 14:26:32 +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
rbs%maths.uq.edu.au
e58a799bfe fix assertions when manipulating the MathML attribute style sheet, b=188103, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@135956 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-07 23:19:56 +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
dbaron%fas.harvard.edu
a436a28cb1 Reduce code size by using PaintSelf member function to paint background, border, and outline. b=184702 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@135596 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 22:05:47 +00:00
bzbarsky%mit.edu
c3731640d3 Make the CSSLoader correctly order stylesheets as they are dynamically added
and removed via the DOM.  Clean up the nsIDocument stylesheet accessors.  Clean
up nsIDocumentObserver stylesheet stuff a bit.  Make style sheets visible in
the CSSOM (though not completely accessible) from the moment the load is kicked
off.  Make us have sheet objects that can be manipulated via CSSOM even for
failed loads. Bug 107567, bug 47734, bug 57225, bug 178407.
r=sicking,  sr=peterv.


git-svn-id: svn://10.0.0.236/trunk@134667 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 05:48:14 +00:00
peterv%netscape.com
d103a96ada Fix for bug 176610 (Make nsNameSpaceManager a service). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@134587 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-29 23:44:07 +00:00
caillon%returnzero.com
d4dd11d541 181420, Use nsIPrefBranch instead of nsIPref.
r=rbs sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@134325 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-22 11:29:31 +00:00
dbaron%fas.harvard.edu
307f43b5a1 Consolidate all CSS pseudos and split them into three atom lists to distinguish between pseudo-classes, pseudo-elements, and fake-pseudo-elements used for anonymous boxes. b=147887 r,sr=roc,bz
git-svn-id: svn://10.0.0.236/trunk@134006 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-17 15:37:56 +00:00
bzbarsky%mit.edu
2e99df36cd Fix ReplaceChild() on positioned inlines to delegate to
nsAbsoluteContainingBlock.h.  Bug 176915, r=dbaron, sr=rbs


git-svn-id: svn://10.0.0.236/trunk@133620 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 03:30:13 +00:00
seawood%netscape.com
f9eb727003 Define WIN32_LEAN_AND_MEAN globally for win32 builds.
Thanks to Stephen Walker <walk84@yahoo.com> for the patch.
Bug #172898 r=cls a=asa


git-svn-id: svn://10.0.0.236/trunk@132136 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 06:47:01 +00:00
bzbarsky%mit.edu
a70a392a2c Make GetParent on nsStyleContext return an
already_AddRefed<nsIStyleContext>.  Bug 171808, r=jkeiser, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@131531 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-09 01:46:15 +00:00
caillon%returnzero.com
0f7366d6d0 Correcting our background painting code per the latest CSS specs. By default, backgrounds should be painted to the border
area, and not the padding area as per the CSS 2 Errata, CSS2.1 and CSS3.  Also, implementing the CSS3 'background-clip'
and 'background-origin' properties (currently with -moz- prefixes) to control this behavior.
Bug 162252, r=dbaron sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@131419 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 10:24:53 +00:00
alecf%netscape.com
fea695e47d fix for bug 164575 - clean nsIPersistentProperties interface to reduce UTF8/UCS2 conversions
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@128567 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-30 17:13:34 +00:00
roc+%cs.cmu.edu
c6bb83f66a Bug 160936. Add type nsChangeHint for style hints. Make it a set of bits. Make sure an NS_STYLE_HINT_REFLOW always also does a repaint of the frame. r=dbaron,sr=kin
git-svn-id: svn://10.0.0.236/trunk@128041 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-24 14:41:28 +00:00
rbs%maths.uq.edu.au
51d900ccdc One-liner forgotten in the mass merge of bug 162412
git-svn-id: svn://10.0.0.236/trunk@127721 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-20 21:56:51 +00:00
rbs%maths.uq.edu.au
a0fbf5f0ca Merge mi/ms/mtext in a single token class and make mo inherit from the token class. The merge allows centralizing the special treatment needed for their child text frames that are non-MathML, b=162412, r=roc+moz, sr=kin
git-svn-id: svn://10.0.0.236/trunk@127492 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-16 21:36:31 +00:00
dbaron%fas.harvard.edu
e8821b1085 Clean up unneeded includes of nsStyleUtil.h, and some other include cleanup in MathML. r=rbs b=71257 (|#include| changes only)
git-svn-id: svn://10.0.0.236/trunk@127461 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-16 11:52:20 +00:00
antonio.xu%sun.com
6e54672f56 replace the hardcode of "@mozilla.org/embedcomp/dialogparam;1" with NS_DIALOGPARAMBLOCK_CONTRACTID
Bug 158608 r=Henry sr=alecf


git-svn-id: svn://10.0.0.236/trunk@127252 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-14 12:39:03 +00:00
rbs%maths.uq.edu.au
8e78dce3cf bug 133761 - substitute leading _ with trailing _ for pure C/C++ compliance (uber-nit of brendan)
git-svn-id: svn://10.0.0.236/trunk@127115 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-13 00:52:38 +00:00
rbs%maths.uq.edu.au
10d3520e0c Improve the handling of the inter-space around invisible MathML characters, b=133761, r=roc+moz, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@127110 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-12 23:30:35 +00:00
seawood%netscape.com
0b3ff474f3 Removing old nmake build makefiles. Bug #158528 r=pavlov
git-svn-id: svn://10.0.0.236/trunk@126975 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-10 07:55:43 +00:00
rbs%maths.uq.edu.au
b8fdddbf90 Perl scripts to process the MathFont Properties Files - not part of build
git-svn-id: svn://10.0.0.236/trunk@126879 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-09 06:13:29 +00:00
rbs%maths.uq.edu.au
7ccfc1a984 remove perl scripts that are not used anymore - not part of build
git-svn-id: svn://10.0.0.236/trunk@126878 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-09 06:11:15 +00:00
rbs%maths.uq.edu.au
cb4b00c1c8 Update the DOCTYPE in the examples - not part of build
git-svn-id: svn://10.0.0.236/trunk@126845 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-09 01:05:00 +00:00
seawood%netscape.com
5cf2509541 Remove unused defines:
_IMPL_NS_HTML
_IMPL_NS_RDF
_IMPL_NS_WEB
USE_NSREG

Patches for removing above defines contributed by Stephen Walker <walk84@yahoo.com>.
Bug #125118 r=cls sr=bryner
Bug #160397 r=cls sr=bryner
Bug #160628 r=cls
Bug #160451 r=cls sr=bryner

_IMPL_NS_VIEW

Patches for removing above define contributed by Brian Ryner <bryner@netscape.com>
Bug #160416 r=cls


git-svn-id: svn://10.0.0.236/trunk@126619 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 06:08:00 +00:00
rbs%maths.uq.edu.au
5010911a5d Cleanup CSS errors, b=157376, r=dbaron, sr=bzbarski
git-svn-id: svn://10.0.0.236/trunk@126576 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 02:15:28 +00:00
henry.jia%sun.com
c294edc1e5 4th patch for bug 158080
Description: replace the hardcode of "@mozilla.org/embedcomp/window-watcher;1" with NS_WINDOWWATCHER_CONTRACTID
Patch by Henry.Jia@sun.com
r=anto, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@126449 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 05:56:22 +00:00
peterv%netscape.com
58298ba6cd Fixing MathML packaging bustage on Mac.
git-svn-id: svn://10.0.0.236/trunk@125380 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 07:17:05 +00:00
rbs%maths.uq.edu.au
7934fc0bf6 Align the bar of the radical on pixel boundaries to get a nicer & uniform spacing on stacked radicals, b=130282, r=roc+moz, sr=waterson, a=asa
git-svn-id: svn://10.0.0.236/trunk@125121 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 21:14:32 +00:00
rbs%maths.uq.edu.au
0842619afb support <msqrt> and <mroot> with Mathematica fonts in addition to TeX fonts, b=121493, r=roc+moz, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124800 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 01:41:52 +00:00
ian%hixie.ch
87df0846e3 Hide embedded semantic MathML content (as opposed to presentational content, which we render). b=154931, p=rbs, moa=dbaron, r=hixie, sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@124397 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 09:51:32 +00:00
dbaron%fas.harvard.edu
7e821aaa94 Convert handwritten GetIID methods to use NS_DEFINE_STATIC_IID_ACCESSOR and add |const| to GetCID methods so that static |nsID|s are declared as |const|. b=153525 sr=jag r=bryner
git-svn-id: svn://10.0.0.236/trunk@124073 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:38:55 +00:00
rbs%maths.uq.edu.au
65cf3c1192 Treat the attributes of <mpadded> correctly, b=148326, r=roc+moz, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123366 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 23:20:03 +00:00