Commit Graph

69 Commits

Author SHA1 Message Date
L. David Baron
10f147165d Call RuleMatched method on CSS rules when they are matched. (Bug 522595) r=bzbarsky 2009-12-11 08:13:19 -08:00
Boris Zbarsky
9d4c216817 Bug 525952 part 3. Introduce an enum for pseudo-clases. r=dbaron 2009-12-11 02:37:41 -05:00
Boris Zbarsky
03a58e11a7 Bug 525608 part 2. Change the CSS parser to not allow anon box selectors with more than the anon box name in them. Store the pseudo type in pseudo-element selectors. Enforce that all non-anon-box pseudo selectors have an mNext that selects the element they apply to. r=dbaron 2009-12-11 02:37:40 -05:00
Boris Zbarsky
8202b90f61 Backing out bug 525608 and bug 525952 2009-12-10 18:28:08 -08:00
Boris Zbarsky
f67d744ed4 Bug 525952 part 3. Introduce an enum for pseudo-clases. r=dbaron 2009-12-10 14:36:07 -08:00
Boris Zbarsky
197fdecd49 Bug 525608 part 2. Change the CSS parser to not allow anon box selectors with more than the anon box name in them. Store the pseudo type in pseudo-element selectors. Enforce that all non-anon-box pseudo selectors have an mNext that selects the element they apply to. r=dbaron 2009-12-10 14:36:05 -08:00
Boris Zbarsky
3257906042 Bug 523148. Speed up AddImportantRules. r=dbaron 2009-12-10 14:36:02 -08:00
David Zbarsky
c16525f18a Bug 507762: Parse CSS style sheets independently of case-sensitivity, and instead check case correctly when using the stylesheets. r=dbaron 2009-09-28 23:07:45 -07:00
David Zbarsky
1a6e5fcda6 Bug 499655: Selectors should have dual atoms so they can correctly (and case-sensitively) match non-HTML elements in text/html documents, part 1. r=dbaron 2009-08-01 08:53:40 -07:00
L. David Baron
389de5e6db Backed out changeset 358af1196dc2 (bug 499655) until we get bug 507487 sorted out. 2009-07-31 09:39:53 -07:00
David Zbarsky
08428e456d Bug 499655. Selectors should have dual atoms: HTML and other. r=dbaron 2009-07-30 13:28:42 -04:00
Arpad Borsos
8936cb9475 Bug 492531 - Optimize some CSS and Reflow classes for memory usage; r+sr=dbaron 2009-05-13 10:26:48 +02:00
L. David Baron
ae2dbb9ba2 Stop using potentially-deep recursion to serialize selectors. (Bug 475215) r+sr=bzbarsky 2009-02-19 13:55:48 -08:00
L. David Baron
c936720f0a Back out all 8 changesets that I just landed (bugs 477959, 477961, 322475, 478899, 475215, 478156) again, because Talos Try server builds lie about which changesets they're testing. 2009-02-19 09:06:18 -08:00
L. David Baron
0d5c6ceac3 Stop using potentially-deep recursion to serialize selectors. (Bug 475215) r+sr=bzbarsky 2009-02-19 07:29:28 -08:00
L. David Baron
3d090560b0 Revert (back out) the previous 11 changesets (bugs 477959, 477961, 477963, 477962, 322475, 478899, 475215, 478156), due to Mac talos orange with (as usual) no useful diagnostic. 2009-02-18 18:59:47 -08:00
L. David Baron
62f38efea1 Stop using potentially-deep recursion to serialize selectors. (Bug 475215) r+sr=bzbarsky 2009-02-18 17:13:26 -08:00
L. David Baron
e77bcd1f39 Avoid recursion when handling mNegations in CalcWeight. (Bug 473908) r+sr=bzbarsky 2009-01-16 19:44:21 -08:00
Boris Zbarsky
127f56f241 Bug 458381 followup: tests and a code fix for a problem the tests caught. r+sr=dbaron, a=beltzner 2008-11-11 22:36:20 -05:00
L. David Baron
8b2c14530a Make nsPseudoClassList capable of storing integer pairs for :nth-*(). b=75375 r+sr=bzbarsky 2008-06-02 20:17:35 -07:00
L. David Baron
1eef72cec5 Rename nsAtomStringList to nsPseudoClassList, since that's what it's for, and we want to make it more than just atoms and strings. Also remove an unused constructor. b=75375 r+sr=bzbarsky 2008-06-02 20:17:35 -07:00
bzbarsky@mit.edu
e07e6b79f8 Have the rule take ownership of the parsed selector when we're done parsing it
instead of cloning the selector.  Bug 386123, r+sr=dbaron
2007-07-23 18:48:10 -07:00
dbaron%dbaron.org
aa4f419e7e Fix leak when cloning negations caused by previous patch. b=333634 r+sr=bzbarsky 2006-04-28 18:02:53 +00:00
dbaron%dbaron.org
a83d924850 Do iterative cloning and destruction of linked list selector data structures. b=333634 r+sr=bzbarsky 2006-04-25 21:48:11 +00:00
dbaron%dbaron.org
30f8db359a File comments that show up in LXR and provide a quick summary of what's in each file. 2006-03-25 05:47:31 +00:00
bsmedberg%covad.net
78f6d0683d Bug 313309 part 2 - change the NS_DEFINE_STATIC_IID_ACCESSOR macro to NS_DECLARE, and make a NS_DEFINE_ macro that's outside the class declaration, r=shaver 2005-11-11 14:36:26 +00:00
dbaron%dbaron.org
eac6a24015 Change storage of :not() selectors so that there is one item in mNegations per :not(), and simplify various code accordingly. Simplify SelectorMatches a little more. b=315567 r+sr=bzbarsky 2005-11-09 04:17:26 +00:00
bzbarsky%mit.edu
8d04af9801 Fix GetSelectorText to truncate the out string. Bug 142648, patch by Daniel
Kraft <domob@daniel-kraft.net>, r+sr=bzbarsky
2005-02-03 18:31:24 +00:00
gerv%gerv.net
9d2ee4928c Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-17 21:52:36 +00:00
darin%meer.net
c083b41820 fixes bug 239038 "rev IIDs for all interfaces modified since Mozilla 1.6" r=bsmedberg sr=jst 2004-04-15 23:30:05 +00:00
dbaron%dbaron.org
7c0fd2338b Implement CSS3 indirect adjacent sibling combinator (~). Roughly identical patches independently written by Daniel Glazman <daniel@glazman.org>, Bradley Baetz <bbaetz@acm.org>, and me. r+sr=dbaron b=135141 2004-01-14 20:12:03 +00:00
dbaron%dbaron.org
40deca4b2f Remove no-longer-needed hook for inspector. b=224164 2003-12-29 19:17:22 +00:00
dbaron%dbaron.org
06bb24f863 Implement the DOM interfaces for CSS style rules on a wrapper object which allows the immutable rule object to be swapped out underneath. b=188803 r+sr=bzbarsky 2003-06-24 05:40:37 +00:00
bsmedberg%covad.net
1a9cab373f Bug 210337 - Spring cleaning of unused XPCOM code and callers r/sr=alecf/bz 2003-06-23 20:31:43 +00:00
dbaron%dbaron.org
fe7914e2c9 Make CSSStyleRuleImpl immutable by changing mutation code (including some merging of code between nsDOMCSSAttributeDeclaration and DOMCSSDeclarationImpl) so that it creates a new rule for the modified declaration. Change StyleRuleChanged notification signatures, and change pres shell's handling of style rule change, addition, and removal to just do reresolution. Remove fine-grained ways of clearing style data. Change PeekStyleData so it doesn't do more work than it needs to, and can be relied on not to access rules that no longer match any content. b=188803 r+sr=bzbarsky 2003-06-18 01:59:57 +00:00
dbaron%dbaron.org
39d390d27f Create only one CSSStyleRuleImpl per rule rather than one per comma-separated selector to fix CSSOM compliance bugs and make rule immutability easier. Store list of selectors on the CSSStyleRuleImpl, each with their own weight. b=98765 r+sr=bzbarsky 2003-06-14 23:50:54 +00:00
peterv%netscape.com
bc210f1afe Fix for bug 195153 (Remove bogus 'extern' decls from NS_New* functions.). Patch by jst, r=sicking, sr=peterv. 2003-03-05 15:08:41 +00:00
dbaron%dbaron.org
6dd68f3c64 Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst 2003-02-22 15:34:38 +00:00
bzbarsky%mit.edu
093137e9f2 Make GetImportantRule and GetISupportsValue return already_AddRefed.
Bug 171808, r=jkeiser, sr=dbaron
2002-10-09 01:59:43 +00:00
dbaron%fas.harvard.edu
79638e5f49 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 2002-08-14 12:34:39 +00:00
dbaron%fas.harvard.edu
6d2263f19b 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 2002-06-26 03:38:55 +00:00
dbaron%fas.harvard.edu
a68d8f9629 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2002-03-23 22:56:05 +00:00
dbaron%fas.harvard.edu
15d7523e7b Fix windows bustage. 2002-01-16 02:04:20 +00:00
dbaron%fas.harvard.edu
0260274dea Fix inspector link errors by adding a method on nsICSSStyleRule that forwards GetValue to nsCSSDeclaration. 2002-01-16 01:34:47 +00:00
blythe%netscape.com
65cd19adda Fix bug 107270
Reduce nsCSSDeclaration footprint
r=dbaron, sr=hyatt
2002-01-15 22:43:37 +00:00
dougt%netscape.com
942988df26 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 2001-10-19 20:59:33 +00:00
dbaron%fas.harvard.edu
5a357eea01 Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst 2001-10-16 05:31:36 +00:00
gerv%gerv.net
1968b7dad2 License changes, take 2. Bug 98089. mozilla/content/. 2001-09-25 01:32:19 +00:00
glazman%netscape.com
4fc3eb0ce3 adds support for :not() css3 pseudo-class; b=71647, r=pierre, sr=hyatt 2001-03-20 11:49:20 +00:00
glazman%netscape.com
99f88218ba enhancement for the 3 new attributes selectors in CSS 3. r=dbaron, sr=attinasi 2001-03-03 00:54:04 +00:00