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
blakeross%telocity.com
f6fd365262
Implement css3 :empty selector (75186). Patch by the evil QA-turned-engineer Ian Hickson <ian@hixie.ch> who insists on using me shamelessly for my cvs account. r=pierre sr=attinasi
...
git-svn-id: svn://10.0.0.236/trunk@91932 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 02:55:41 +00:00
blakeross%telocity.com
694fbc6383
Use more efficient command structure, refactor commands, broadcasters and keys, remove unused attributes, do some other optimization (72923). Landing navigator part only; this should help new window opening and some other areas. r=ben sr=hyatt
...
git-svn-id: svn://10.0.0.236/trunk@91473 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 19:53:13 +00:00
dbaron%fas.harvard.edu
6657eede2c
Fix bustage (if CSS_REPORT_PARSE_ERRORS is defined) from scc's string branch landing. nsLiteralChar was removed, so use nsLocalString instead. r=disttsc@bart.nl sr=scc@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@91050 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 21:14:23 +00:00
glazman%netscape.com
ea38e16949
Support for :last-child pseudoclass; checking in for Ian Hickson ; b=46916, r=pierre, sr=attinasi
...
git-svn-id: svn://10.0.0.236/trunk@90881 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 10:20:57 +00:00
glazman%netscape.com
710439fbb7
adds support for :not() css3 pseudo-class; b=71647, r=pierre, sr=hyatt
...
git-svn-id: svn://10.0.0.236/trunk@89901 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 11:49:20 +00:00
hyatt%netscape.com
7eeaba98a2
Fix for 70704 and 71261. r=pierre, sr=attinasi
...
git-svn-id: svn://10.0.0.236/trunk@89435 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:34:02 +00:00
glazman%netscape.com
a96dbca975
Cleanup of ParseSelector() ; b=71100, r=peterl, sr=attinasi
...
git-svn-id: svn://10.0.0.236/trunk@89008 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:27:39 +00:00
glazman%netscape.com
c51ab80308
mSourceString in SelectorList was allocated, filled with a
...
reconstructed copy of ALL selectors in chrome and document,
unused and then deallocated ! b=70995, r=hewitt, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@88711 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 23:07:33 +00:00
hyatt%netscape.com
e887dceb91
Fix for 70809. r=attinasi, sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@88615 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:30:30 +00:00
dbaron%fas.harvard.edu
14ad030646
Work in progress on CSS error reporting: fix the known false positives and duplicate messages and improve the error messages. It's still a hack that I wouldn't really want to enable by default, but it should be useful for debugging chrome CSS. r=glazman@netscape.com sr=attinasi@netscape.com b=65469
...
git-svn-id: svn://10.0.0.236/trunk@88605 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 01:57:30 +00:00
glazman%netscape.com
0c17ea7bbc
enhancement for the 3 new attributes selectors in CSS 3. r=dbaron, sr=attinasi
...
git-svn-id: svn://10.0.0.236/trunk@88435 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 00:54:04 +00:00
hyatt%netscape.com
3f460ba63e
Fix for 67739. r=pierre,attinasi, sr=ben
...
git-svn-id: svn://10.0.0.236/trunk@87132 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-15 21:25:31 +00:00
glazman%netscape.com
d1b1be34d9
patch for #65448 : css parser refused multiple ID selectors in same sequence; r=dbaron,attinasi sr=attinasi (buster's delegation)
...
git-svn-id: svn://10.0.0.236/trunk@86915 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-13 14:06:29 +00:00
dbaron%fas.harvard.edu
5f0a7ab9bd
Remove trailing semicolons after all uses of MOZ_DECL_CTOR_COUNTER to quiet build warnings on Mac. b=60415 a=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@85654 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 23:06:33 +00:00
hewitt%netscape.com
89e5dd1e29
52381 - DOM selectorText implementation, r=attinasi/jst, sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@85251 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-22 04:03:48 +00:00
rods%netscape.com
a6e0d47c5a
removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros
...
Bug 61274, r=buster sr=waterson
git-svn-id: svn://10.0.0.236/trunk@84377 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 20:44:42 +00:00
dbaron%fas.harvard.edu
3ccf2a2ea4
Clean up reporting of CSS parser errors: Use |nsAReadableString|s and an additional macro to allow all the error reporting to be done by macros. Also clean up a few comments. Not part of the default build (you must define CSS_REPORT_PARSE_ERRORS).
...
Make namespace prefixes case insensitive within CSS by normalizing to lower-case. b=35813
r=attinasi
git-svn-id: svn://10.0.0.236/trunk@78476 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 02:05:09 +00:00
dbaron%fas.harvard.edu
58582b97ac
Add code to allow the CSS parser to report errors. This code is not enabled by default in any builds, but it could be useful for chrome authors to catch CSS errors. We may want to turn it on in debug builds at some point, but it needs some work first. r=attinasi
...
git-svn-id: svn://10.0.0.236/trunk@78236 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-06 02:27:46 +00:00
rods%netscape.com
cd160a660f
Temporarily changed outline to be mozoutline, this will enable us to get links
...
to show a focus rect. When we get outlines really working, then mozoutline will go away.
b=48973 r=attinasi
git-svn-id: svn://10.0.0.236/trunk@77076 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 13:45:48 +00:00
jst%netscape.com
7e0575bfee
DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
...
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 17:27:06 +00:00
pierre%netscape.com
7393600e1b
47138: Some invalid units are not resulting in dropped declarations.
...
15174: counter() and counters() should not be recognized by CSS parser.
git-svn-id: svn://10.0.0.236/trunk@75744 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 00:34:42 +00:00
pierre%netscape.com
6e8b05fbf3
9816 (Outlines should be disabled completely for FCS)
...
46562 ('display: run-in' disables whole declaration block)
45804 (In quirks mode, 0 in 'border' should set the width, not the color)
46547 (Background image not centered correctly)
Thanks to emk <VYV03354@nifty.ne.jp>
git-svn-id: svn://10.0.0.236/trunk@75638 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:40:03 +00:00
attinasi%netscape.com
3da8003982
Implemented QuirkMode style sheet and moved some initial quirk style rules from html.css to the new quirk.css. b=38026 r=rods a=karnaze
...
git-svn-id: svn://10.0.0.236/trunk@71391 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 21:45:06 +00:00
jst%netscape.com
09a726c20d
WIP for supporting setting the cssText property on css declarations through the CSS DOM, approved and partly reviewed by Pierre.
...
git-svn-id: svn://10.0.0.236/trunk@68135 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 21:42:00 +00:00
pierre%netscape.com
8be7e09c16
35261. Implement :last-node (P and Hx tags inside a cell do not collapse the cell). Change TD to collapse the bottom margin on the last-node.
...
git-svn-id: svn://10.0.0.236/trunk@67510 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 10:02:12 +00:00
dbaron%fas.harvard.edu
6b88c55779
Fix bugs 12398, 12450, and 35215, and comment out some unused code. r=pierre@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@67336 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:12:25 +00:00
attinasi%netscape.com
3c5099c351
Added support for @charset in external stylesheets, as well as support for charset being set byt HTML document for parsing HTML style attributes in other charsets. r=ftang b=2870,28500
...
git-svn-id: svn://10.0.0.236/trunk@66894 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 02:01:40 +00:00
scc%netscape.com
8a7f53cc88
making string conversions explicit
...
git-svn-id: svn://10.0.0.236/trunk@66101 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 20:15:37 +00:00