236 Commits

Author SHA1 Message Date
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
bzbarsky%mit.edu
ad1fb22926 Change users of Length() to IsEmpty() where the code really cares about
the latter in content/.  Bug 100649, r=jag, sr=jst


git-svn-id: svn://10.0.0.236/trunk@112623 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:03:19 +00:00
blythe%netscape.com
8f002dba27 Fix bug 107270
Reduce nsCSSDeclaration footprint
r=dbaron, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@112202 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:43:37 +00:00
hyatt%netscape.com
2e88971c9c Checking in 115757, enabling of Windows XP Theme Support under Classic skin.,r=bryner,sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@111336 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-04 00:28:01 +00:00
hwaara%chello.se
1779335a43 #117050, fix bustage for embeddors who turn XUL off.
r=dbaron, sr=blake


git-svn-id: svn://10.0.0.236/trunk@111161 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-29 22:07:54 +00:00
hyatt%netscape.com
f9a19ba7cd Fix for 112980, nsITheme API and dynamic skin switching re-enabling. r=ben, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@110648 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-17 22:51:39 +00:00
jaggernaut%netscape.com
576ec93128 Bug 113228: Replace ns{C}String::To{Upper,Lower}Case with global versions. r=bzbarsky, sr=jst
git-svn-id: svn://10.0.0.236/trunk@110611 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-17 07:14:49 +00:00
jaggernaut%netscape.com
436d43f211 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
git-svn-id: svn://10.0.0.236/trunk@110579 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-16 11:58:03 +00:00
bbaetz%cs.mcgill.ca
478af40f6f Bug 80142 (among others) - landing of SVG_20010721_BRANCH. Work by
alex.fritze@crocodile-clips.com, james.turner@crocodile-clips.com, and
everyone else how helped on the branch. Thanks to peterv for last minute
build changes

r=cls for build changes
r=jst, rs=brendan for #ifdef'd parts touching existing files.

NOT ON BY DEFAULT


git-svn-id: svn://10.0.0.236/trunk@110384 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 07:59:31 +00:00
hewitt%netscape.com
0b50d686f1 114184 - DrawCompositeSide can't deal with sides of differing widths, r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@110252 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 11:13:53 +00:00
jaggernaut%netscape.com
357c78f88e BUg 113228: Replace nsC?String::To(Lower|Upper)Case with global To(Lower|Upper)Case. r=dbaron, sr=jst
git-svn-id: svn://10.0.0.236/trunk@110075 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-08 07:08:38 +00:00
hyatt%netscape.com
6c6f01e32e Enhancements to CSS to enable multi-colored borders and painting of image subregions. 112988 and 112990. r=dbaron,hewitt for 112990, r=ben,hewitt for 112988
git-svn-id: svn://10.0.0.236/trunk@109734 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 08:35:05 +00:00
jst%netscape.com
be2baf922d Fixing bug 112473. Eliminate unnecessary allocations in the CSS parser and speed up NS_NewHTMLReflowCommand() a bit. r=dbaron@fas.harvard.edu, rs=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109187 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 08:48:53 +00:00
dougt%netscape.com
1f7520e927 Extraneous Symbol Removal. Patch by Jon Smirl jonsmirl@mediaone.net. r=dougt@netscape.com, sr=alecf@netscape.com. Bug 104172, 104316, 104420, 104426, 104461, 104511, 104527
git-svn-id: svn://10.0.0.236/trunk@105810 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 20:59:33 +00:00
bzbarsky%mit.edu
05cc80423d Fix parsing of negative (illegal) values of border-spacing, padding, and
others.  Bug 102344, r=dbaron, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@104738 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-06 15:13:23 +00:00
bzbarsky%mit.edu
316ec70207 Make setting element.style.foo just parse the value instead of creating
a property:value pair and parsing that.  Speeds up setting of
element.style.top by about 5%.  Bug 99797, r=attinasi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@104060 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 01:38:36 +00:00
hewitt%netscape.com
f15e8fc2e2 93519 - new box-ordinal-group xul layout feature, r=waterson, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@103733 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 22:17:00 +00:00
gerv%gerv.net
ed9b258739 License changes, take 2. Bug 98089. mozilla/content/.
git-svn-id: svn://10.0.0.236/trunk@103682 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 01:32:19 +00:00
dbaron%fas.harvard.edu
f25532bcbf Allow declarations in style attribute to be surrounded by braces in quirks mode. Rename ParseDeclarations to ParseStyleAttribute since that's what it does. b=99554 r=hixie,glazman sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@103044 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-17 23:59:30 +00:00
dp%netscape.com
eb731f9c5d bug# 98786 Eliminating url cloning r=gagan,sr=jst
git-svn-id: svn://10.0.0.236/trunk@102596 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 21:13:20 +00:00
pierre%netscape.com
53dfaf64c7 Bug 93371 (WRMB: Treat classes case insensitively in quirks mode). Back out ianh's patch in nsCSSParser.cpp and nsHTMLAttributes.cpp. Treat classes and IDs case insensitively as described in Bug 35522. r=glazman (+dbaron/jst) sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@102494 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 00:23:37 +00:00
bzbarsky%mit.edu
bafa24e23a Re-fix bug 93977 and fix bug 98358 (lack of underlining on links). The
CSS parser parses "foo, bar { decls }" into two separate rules -- one
for foo and one for bar.  So ParseRule() has to return an array of
rules, not just a rule.  r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102406 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 13:14:35 +00:00
bzbarsky%mit.edu
0f2651a119 Fix the nsIDOMMediaList interface to have the right properties. Make
media rules implement nsIDOMCSSMediaRule.  Fix insertRule() to be able
to insert into the middle of a rule list.  Fix issues with stylesheets
not getting dirtied when media lists are modified.  bug 93977,
r=pierre, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102234 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 00:00:18 +00:00
dbaron%fas.harvard.edu
3485888237 Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797
git-svn-id: svn://10.0.0.236/trunk@101462 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:48:11 +00:00
ian%hixie.ch
9e1e50cfdc Treat classes case-insensitively in quirks mode. Bug 93371; r=pierre sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@101199 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-16 07:42:15 +00:00
jaggernaut%netscape.com
5f71d7fa3e Bug 92623: ``Adjust the nsCSSParser quirks'', patch by Hixie, r=pierre@netscape.com, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@100836 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 22:46:53 +00:00
bzbarsky%mit.edu
8cca381b47 Making import rules implement the nsIDOMCSSImportRule interface. Bug 90290, r=pierre, sr=jst
git-svn-id: svn://10.0.0.236/trunk@100358 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-04 21:19:53 +00:00
hyatt%netscape.com
d5f1d5af70 Fix for 71471. r=blake, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@100159 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-02 00:09:27 +00:00
bzbarsky%mit.edu
e200a7a6f7 Make CSSParserImpl::ParseAndAppendDeclaration keep parsing even when it
encounters an error. Bug 88421, r=pierre, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@99496 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-18 19:43:39 +00:00
glazman%netscape.com
701df9fa73 CSS parser drops negations if attached to universal selector and a pseudo-element; b=87999, r=peterv, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@98057 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-27 10:41:49 +00:00
dbaron%fas.harvard.edu
78ac4ca4b3 Make implied universal selectors be equivalent to ns|* where ns is the default namespace, and make appropriate changes to our CSS files. This brings us into conformance with the CSS3 selectors draft and improves performance by reducing the number of universally hashed selectors. Most of this patch is by attinasi. (35847, 83482) Also make first-node/last-node rules in quirks.css non-universal to improve performance. (83839) r=rbs sr=waterson a=asa b=35847
git-svn-id: svn://10.0.0.236/trunk@96767 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-09 01:32:19 +00:00
dbaron%fas.harvard.edu
d1140fa5b3 Miscellaneous performance fixes related to selector matching:
* cut in half the number of (expensive, universally hashed) selectors needed for many UA-stylesheet :link and :visited rules by implementing :-moz-any-link (bug 83484)
 * remove most of EnumerateTagRules since most of it does no useful work (bug 83506)
 * avoid refcounting of atoms for stack-based hash keys (bug 83511)
 * add logging (turned off, except for me) to evaluate effectiveness of RuleHash
 * add a namespace hash, which will be a big win once bug 35847 is fixed (bug 83497)
 * avoid repeated reallocation of mEnumList by setting the initial length to a minimum of 8
 * remove an unneeded variable in the beginning of SelectorMatches
 * fix one case in CSS error reporting (bug 65469), not part of default build
b=83482  r=attinasi@netscape.com  sr=waterson@netscape.com  a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@96389 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 01:00:11 +00:00
hyatt%netscape.com
b7b1cb3691 Fix for 78695 (rule matching improvements). r/sr=attinasi, jst, waterson
git-svn-id: svn://10.0.0.236/trunk@96136 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-31 22:19:43 +00:00
dbaron%fas.harvard.edu
63ff65123f Fix build bustage within |#ifdef CSS_REPORT_PARSE_ERRORS| resulting from scc's string changes for bug 75220. Not part of default build. r=glazman a=tor
git-svn-id: svn://10.0.0.236/trunk@95826 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 14:18:38 +00:00
pierre%netscape.com
dd850a3666 14448 'border' property not resetting 'border-color' to initial value. tested=dbaron/hixie
git-svn-id: svn://10.0.0.236/trunk@93636 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 10:31:31 +00:00
pierre%netscape.com
e1fa3a64af #12386 "Matching of case sensitive attribute values should be case sensitive" sr=waterson
git-svn-id: svn://10.0.0.236/trunk@92655 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 04:36:52 +00:00