221 Commits

Author SHA1 Message Date
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
aa145295c7 argh fix darwin bustage.. :(
git-svn-id: svn://10.0.0.236/trunk@139936 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 16:06:20 +00:00
alecf%netscape.com
3fa5a6e1da just one theory on the Ts slowdown, before I back myself out completely
git-svn-id: svn://10.0.0.236/trunk@139925 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 13:31:34 +00:00
bzbarsky%mit.edu
ea0d50568b s/floorf/floor/. Fixes solaris/AIX/whatever bustage
git-svn-id: svn://10.0.0.236/trunk@139659 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 08:29:00 +00:00
bzbarsky%mit.edu
4f9a4db54e Add math.h too
git-svn-id: svn://10.0.0.236/trunk@139656 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 06:48:04 +00:00
bzbarsky%mit.edu
6a018426c4 Fix build bustage -- looks like not all platforms have round(). r=timeless
git-svn-id: svn://10.0.0.236/trunk@139655 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 06:45:57 +00:00
bzbarsky%mit.edu
61cb208768 Bug 160550 -- implement -moz-hsl() (CSS3 hsl() colors). Implement the parsing end of
-moz-rgba() and -moz-hsla(); the GFX end is bug 147017.  r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139650 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 05:43:12 +00:00
bzbarsky%mit.edu
4ca70c77f0 Don't parse "string" values for text-align till we actually support them in
layout... Bug 197771, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139649 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 05:25:37 +00:00
bzbarsky%mit.edu
a0fe9c437e Random CSS parser cleanup -- nsCOMPtr, nsCOMArray, remove unused methods, etc.
Bug 197512, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139648 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 05:21:30 +00:00
bzbarsky%mit.edu
d5678f9f7d Make the CSS parser not throw on attempts to parse lengths with unknown units
(bug 197212).  Also fixes a few build warnings and finally removes
NS_CSS_PARSER_DROP_DECLARATION (bug 88423).  r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139592 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 03:58:06 +00:00
roc+%cs.cmu.edu
220a586522 Bug 195883. %-values are not valid for '-moz-opacity'.
git-svn-id: svn://10.0.0.236/trunk@139134 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-08 03:08:25 +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
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
30879d2c9e Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it's no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135991 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:24:38 +00:00
dbaron%fas.harvard.edu
ffb8d9cca7 Change my email address from dbaron@fas.harvard.edu to dbaron@dbaron.org. Comment changes only.
git-svn-id: svn://10.0.0.236/trunk@135757 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-01 23:53:20 +00:00
peterv%netscape.com
3a3c75b9f7 Fix for bug 183999 (Modernize content). r=caillon, sr=bz.
git-svn-id: svn://10.0.0.236/trunk@135128 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 14:24:49 +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
sicking%bigfoot.com
6f8753e832 Bug 8929: Kill NS_COMFALSE
r=peterv sr=bz


git-svn-id: svn://10.0.0.236/trunk@134398 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-25 11:21:22 +00:00
bzbarsky%mit.edu
0c8594d486 Report the unknown namespace when we have an unknown namespace error.
Bug 180852, r=dbaron, rs=roc+moz


git-svn-id: svn://10.0.0.236/trunk@134098 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-19 15:12:02 +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
2dfbc5fd7d Backing out alecf for now, since this change makes mailcompose crash
(and we don't want smoketest blockers, now do we?)


git-svn-id: svn://10.0.0.236/trunk@133971 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 12:07:13 +00:00
alecf%netscape.com
7ecfcf2dd0 prep work for fixing bug 180379 - stop creating extra nsCSSSelectors - instead of creating them on the stack then copying them to the heap, start with them newly on the heap.
r=bzbarsky, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@133956 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 05:37:24 +00:00
bzbarsky%mit.edu
036dcaa1ec fix regression in setting important property values in inline style via
DOM.  Bug 173767, r=caillon, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@133073 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 02:07:17 +00:00
dbaron%fas.harvard.edu
b3d24bd19b OK, over from snprintf to PR_snprintf. b=173837
git-svn-id: svn://10.0.0.236/trunk@132005 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-15 00:29:58 +00:00
dbaron%fas.harvard.edu
37dfe04a81 Maybe an explicit include of stdio.h will fix the myotonic bustage. b=173837
git-svn-id: svn://10.0.0.236/trunk@132004 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-15 00:20:45 +00:00
dbaron%fas.harvard.edu
795925d5f4 Change sprintf to snprintf to avoid potential for buffer overflow. Untabify surrounding code. b=173837 r=heikki sr=bzbarsky a=rjesup
git-svn-id: svn://10.0.0.236/trunk@131997 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-14 23:49:48 +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
caillon%returnzero.com
36e93f89dd Bug 117500. Adding support for the CSS2Properties interface to computed style declarations.
r=dbaron sr=jst


git-svn-id: svn://10.0.0.236/trunk@130500 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-26 03:46:50 +00:00
bzbarsky%mit.edu
f700bdbb39 Fix an edge case in color-parsing correctness. Bug 154755, r=glazman,
sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@129595 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-14 05:28:26 +00:00
bzbarsky%mit.edu
a5718fc9e5 negative border widths are not legal in CSS. bug 167657, r=glazou,
sr=dbaron.


git-svn-id: svn://10.0.0.236/trunk@129189 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-11 01:47:25 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
bzbarsky%mit.edu
8b530edf64 Bug 119321 and bug 80106. Create a generic nsIUnicharStreamLoader that
makes two callbacks -- one to determine the charset and one to provide
an nsIUnicharInputStream.  Use this in the CSSLoader instead of
allocating a single big buffer for the sheet.  Clean up the way we look
for the @charset charset in the sheet data.

r=rpotts for netwerk/, r=peterv for content/, r=smontagu for intl/,
sr=darin for the whole thing.


git-svn-id: svn://10.0.0.236/trunk@128310 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-27 23:47:25 +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
dbaron%fas.harvard.edu
e58a8cf95b Implement CSS2 :lang() selector. Fix problems with dynamic changes of 'quotes' property. Patch mostly by Ulrich Drepper (drepper@redhat.com), with some changes by Pierre Saslawsky and dbaron. r=rbs, dbaron sr=bzbarsky b=35768
git-svn-id: svn://10.0.0.236/trunk@127250 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-14 12:34:39 +00:00
bzbarsky%mit.edu
a260f77062 Expose @charset rules in the CSSOM. Bug 160834. r=glazman, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@126444 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 05:26:41 +00:00
dbaron%fas.harvard.edu
121b842e9f Turn on CSS parser error reporting in DEBUG builds. Make unexpected-EOF error messages more informative. b=155855 r=bzbarsky sr=ben
git-svn-id: svn://10.0.0.236/trunk@124827 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 04:28:58 +00:00
jst%netscape.com
7b7411c3ef Fixing bug 134278. Die kNameSpaceID_HTML, die! r=sicking@bigfoot.com, sr=heikki@netscape.com
git-svn-id: svn://10.0.0.236/trunk@121894 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-20 22:47:02 +00:00
gerv%gerv.net
845e4a7761 Bug 3935 - mozilla-native psuedo classes and properties should be marked as such. This fixes a number of them; still a few more to do. Patch by gerv, r=dbaron, sr=jst, a=asa.
git-svn-id: svn://10.0.0.236/trunk@119384 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-19 08:07:11 +00:00
hewitt%netscape.com
7fd03a3524 bugs 110156, 110155
Removing support for <outliner> tags
Removing <tree> layout code and moving <tree> tags to outliner layout
Convert all usage of <outliner> to tree tags
Convert all usage of <tree> tags to new <tree> syntax or <listbox>
r=cmanske,varga sr=hyatt,sspitzer a=asa

Also includes fixes by Jan Varga (varga@utcruk.sk) for bugs 132020, 133451, 131393, 115894, and 129327


git-svn-id: svn://10.0.0.236/trunk@117710 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-29 02:46:01 +00:00
bryner%netscape.com
0d03028090 Revert to using an attribute for menuactive (bug 133610). r=ben/jkeiser, sr=jst, a=asa.
git-svn-id: svn://10.0.0.236/trunk@117621 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-27 07:01:26 +00:00
attinasi%netscape.com
dbe40cd4b1 Support for proprietary style property to allow composer to force broken image icons. b=58646 r=karnaze sr=kin a=asa
git-svn-id: svn://10.0.0.236/trunk@117496 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 20:14:05 +00:00
dbaron%fas.harvard.edu
b447eec349 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
git-svn-id: svn://10.0.0.236/trunk@117348 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 22:56:05 +00:00
bryner%netscape.com
97fd40e754 Changing XUL menus to use a :-moz-menuactive pseudoclass rather than a menuactive attribute for styling the active item. This will allow XBL select widgets to not modify the HTML DOM. Bug 128947, r=dbaron, sr=hyatt, a=asa.
git-svn-id: svn://10.0.0.236/trunk@116424 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 21:49:23 +00:00
bzbarsky%mit.edu
ea8a36ff35 Fix hang when style.cssText is set to an unrecognized value. Bug
129927, r=dbaron, sr=jst, a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@116404 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 15:28:27 +00:00
darin%netscape.com
04849998e1 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
bzbarsky%mit.edu
0876fd184e Fix parsing of some edge cases of background shorthand. Bug 124193,
r=pierre, sr=attinasi, a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@115182 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-22 00:25:57 +00:00
bzbarsky%mit.edu
d9113378ce Leave rules with empty decl blocks in the sheet so they're picked up by
the DOM.  Bug 112854, r=dbaron, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@114872 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 02:27:38 +00:00
timeless%mac.com
092ea531fa Bug 33601ÿfixing warnings about switch(enumVar){case onlyOne: {}}
adds a default case. also removing an else after return.

r=roc+moz@cs.cmu.edu sr=alecf


git-svn-id: svn://10.0.0.236/trunk@113941 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-08 00:05:16 +00:00
roc+%cs.cmu.edu
9e52ce4c8a Bug 33601. Force REFRAME style hints if views might need to be created in response to opacity or background-attachment style changes. r=dbaron,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@112990 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 07:53:27 +00:00